Tagged: post slider
Hi!
If I use your colored dropcap at the head of my blog posts, the dropcapped letter disappear in the post slider that I have put on my front page (http://lystilditthus.no)
I like the dropcaps and want to use them in blog posts. What can I do to make the dropcap show in the post slider?
Hi,
The problem is that the ‘post slider’ element deletes all the inner shortcodes found in the post content, however i found a solution, you will need to edit this file: /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php:
Replace the 280 line:
$prepare_excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_postgrid_excerpt_length' , 60) , apply_filters( 'avf_postgrid_excerpt_delimiter' , " "), "…", true, '');
with this:
$prepare_excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : do_shortcode(avia_backend_truncate($entry->post_content, apply_filters( 'avf_postgrid_excerpt_length' , 160) , apply_filters( 'avf_postgrid_excerpt_delimiter' , " "), "…", false, ''));
Regards,
Josue
Thank you very much.
Just a question –
I have never done any changes to the enfold files – is there anything I should do before I change anything – like a backup or something?