Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #28697


    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?



    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, ''));




    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?


    Hi MarieAn,

    I would suggest you to always backup files prior to editing them, just in case.



Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Dropcap 2 and post sliders..’ is closed to new replies.