Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Tagged: post meta
Hi,
I am trying to change the meta in the post slider on the blog page. Currently it shows number of comments and the post date. I want to change that to post date and author.
I copied config-templatebuilder/avia-shortcodes/postslider/postslider.php to my child theme, but my changes are not shown. Is there another way to change them?
Hey Buro Staal,
Sorry for the late reply, Please try adjusting the meta settings in the theme options at Enfold Theme Options > Blog Layout > Blog meta elements
You can read more about it here
Best regards,
Mike
Hey Mike,
Yes those are set, but it only applies to the first two highlighted. The nine smaller blog posts below each two highlighted show comments and date and not date and author, as set in the options.
Hi,
I re-read your first post and I think I overlooked something, are you saying that you have made your changes to the “postslider.php” and now you want to add it to your child theme? If so please add /postslider/postslider.php to a directory “/shortcodes/” in your child theme, so the structure is like this:
/enfold-child/shortcodes/postslider/postslider.php
then add this code to the end of your functions.php file in Appearance > Editor:
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.'/shortcodes/');
return $paths;
}
Best regards,
Mike