Thank you for looking into this. I got this error once on Travelify parent. I have tried all the fixes I can find. Below are style.css and functions.php from the child theme
/*
Theme Name: Travelify Child
Theme URI: https://colorlib.com/
Description: Child theme for the Travelify theme
Author: Aigars Silkalns
Author URI: https://colorlib.com/
Template: travelify
Version: 2.0
*/
/**
- Your custom CSS code goes here
*/
.form-allowed-tags {
display: none;
}
body,input,textarea,article {
font: 16px Helvetica, sans-serif;
}
<?php
// Queue parent style followed by child/customized style
add_action( ‘wp_enqueue_scripts’, ‘func_enqueue_child_styles’, 99);
function func_enqueue_child_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_dequeue_style(‘travelify_style’);
wp_enqueue_style( ‘travelify_style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array(‘parent-style’)
);
}
/**
-
Function to show the page content.
*/
function travelify_theloop_for_page() {
global $post;
if( have_posts() ) {
while( have_posts() ) {
the_post();
do_action( 'travelify_before_post' );
?>
<section id=“post-<?php the_ID(); ?>” <?php post_class(); ?>>
<article>
<?php do_action( 'travelify_before_post_header' ); ?>
<header class="entry-header">
<h1 class="entry-title">
<?php the_title(); ?>
</h1><!-- .entry-title -->
</header>
<?php do_action( 'travelify_after_post_header' ); ?>
<?php do_action( 'travelify_before_post_content' ); ?>
<div class="entry-content clearfix">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div style="clear: both;"></div><div class="pagination clearfix">'.__( 'Pages:', 'travelify' ),
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '%',
'echo' => 1
) );
?>
</div>
<?php
do_action( 'travelify_after_post_content' );
do_action( 'travelify_before_comments_template' );
comments_template();
do_action ( 'travelify_after_comments_template' );
?>
</article>
</section>
<?php
do_action( ‘travelify_after_post’ );
}
}
else {
?>
<h1 class="entry-title"><?php _e( 'No Posts Found.', 'travelify' ); ?></h1>
<?php
}
}
/**
-
Function to show the single post content.
*/
function travelify_theloop_for_single() {
global $post;
if( have_posts() ) {
while( have_posts() ) {
the_post();
do_action( 'travelify_before_post' );
?>
<section id=“post-<?php the_ID(); ?>” <?php post_class(); ?>>
<article>
<?php do_action( 'travelify_before_post_header' ); ?>
<header class="entry-header">
<h1 class="entry-title">
<?php the_title(); ?>
</h1><!-- .entry-title -->
</header>
<?php do_action( 'travelify_after_post_header' ); ?>
<?php do_action( 'travelify_before_post_meta' ); ?>
<div class="entry-meta-bar clearfix">
<div class="entry-meta">
<?php travelify_posted_on(); ?>
<?php if( has_category() ) { ?>
<span class="category"><?php the_category(', '); ?></span>
<?php } ?>
<?php if ( comments_open() ) { ?>
<span class="comments"><?php comments_popup_link( __( 'No Comments', 'travelify' ), __( '1 Comment', 'travelify' ), __( '% Comments', 'travelify' ), '', __( 'Comments Off', 'travelify' ) ); ?></span>
<?php } ?>
</div><!-- .entry-meta -->
</div>
<?php do_action( 'travelify_after_post_meta' ); ?>
<?php do_action( 'travelify_before_post_content' ); ?>
<div class="entry-content clearfix">
<?php the_content();
if( is_single() ) {
$tag_list = get_the_tag_list( '', __( ', ', 'travelify' ) );
if( !empty( $tag_list ) ) {
?>
<div class="tags">
<?php echo $tag_list; ?>
</div>
<?php
}
}
wp_link_pages( array(
'before' => '<div style="clear: both;"></div><div class="pagination clearfix">'.__( 'Pages:', 'travelify' ),
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '%',
'echo' => 1
) );
?>
</div>
<?php
do_action( 'travelify_after_post_content' );
do_action( 'travelify_before_comments_template' );
comments_template();
do_action ( 'travelify_after_comments_template' );
?>
</article>
</section>
<?php
do_action( ‘travelify_after_post’ );
}
}
else {
?>
<h1 class="entry-title"><?php _e( 'No Posts Found.', 'travelify' ); ?></h1>
<?php
}
}
if ( ! function_exists( ‘travelify_featured_post_slider’ ) ) :
/**
-
display featured post slider
-
-
@uses set_transient and delete_transient
*/
function travelify_featured_post_slider() {
global $post;
global $travelify_theme_options_settings;
$options = $travelify_theme_options_settings;
$travelify_featured_post_slider = ‘’;
if( ( !$travelify_featured_post_slider = get_transient( ‘travelify_featured_post_slider’ ) ) && !empty( $options[ ‘featured_post_slider’ ] ) ) {
$travelify_featured_post_slider .= ’
<section class=“featured-slider”><div class=“slider-cycle”>’;
$get_featured_posts = new WP_Query( array(
‘posts_per_page’ => $options[ ‘slider_quantity’ ],
‘post_type’ => array( ‘post’, ‘page’ ),
‘post__in’ => $options[ ‘featured_post_slider’ ],
‘orderby’ => ‘post__in’,
‘ignore_sticky_posts’ => 1 // ignore sticky posts
));
$i=0; while ( $get_featured_posts->have_posts()) : $get_featured_posts->the_post(); $i++;
$title_attribute = apply_filters( ‘the_title’, get_the_title( $post->ID ) );
$excerpt = get_the_excerpt();
if ( 1 == $i ) { $classes = “slides displayblock”; } else { $classes = “slides displaynone”; }
$travelify_featured_post_slider .= ’
<div class="’.$classes.’">’;
if( has_post_thumbnail() ) {
$travelify_featured_post_slider .= get_the_post_thumbnail( $post->ID, 'slider', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'pngfix' ) ).'</figure>';
}
if( $title_attribute != '' || $excerpt !='' ) {
$travelify_featured_post_slider .= '
<article class="featured-text">';
if( $title_attribute !='' ) {
$travelify_featured_post_slider .= '<div class="featured-title">'. get_the_title() . '</div><!-- .featured-title -->';
}
if( $excerpt !='' ) {
$travelify_featured_post_slider .= '<div class="featured-content">'.$excerpt.'</div><!-- .featured-content -->';
}
$travelify_featured_post_slider .= '
</article><!-- .featured-text -->';
}
$travelify_featured_post_slider .= '
</div><!-- .slides -->';
endwhile; wp_reset_query();
$travelify_featured_post_slider .= '</div>
<nav id="controllers" class="clearfix">
</nav><!-- #controllers --></section><!-- .featured-slider -->';
set_transient( ‘travelify_featured_post_slider’, $travelify_featured_post_slider, 86940 );
}
echo $travelify_featured_post_slider;
}
endif;