Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #401632

    Hey,

    I’d need a filter hook so I can modify the output HTML for the excerpt in the post slider (class avia_post_slider). How soon could this be done?

    File /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php, row 390.

    Current code:
    $output .= !empty($excerpt) ? "<div class='slide-entry-excerpt entry-content' $markup>".$excerpt."</div>" : "";

    Suggested code:

    $excerpt = apply_filters('avia_post_slider_entry_excerpt', $excerpt, $prepare_excerpt, $permalink, $entry);
    $output .= !empty($excerpt) ? "<div class='slide-entry-excerpt entry-content' $markup>".$excerpt."</div>" : "";

    Thank you in advance.

    • This topic was modified 6 years, 10 months ago by  hanslindstrom.
    #401958

    Hi hanslindstrom!

    Thank you for using our theme.

    I included the following hook (to follow the new naming convetions for Enfold):

    
    $excerpt = apply_filters( 'avf_post_slider_entry_excerpt', $excerpt, $prepare_excerpt, $permalink, $entry );
    

    and placed a pull request to Kriesi. It should be included in the next update(s) if Kriesi approves it.

    Best regards,
    Günter

    #402161

    Hey Günter,

    Excellent, thank you very much!

    How do I know if/when it gets approved? I suppose these minor changes won’t be visible in the changelog.

    #402247

    Hey!

    I just contacted Kriesi. He will add it in the next release.

    Regards,
    Günter

    #402317

    Hey Günter,

    Thank you for the good news, looking forward to the next release.

    Thanks again for all help!

    #402551

    Hi!

    Glad we could help you. Enjoy the theme and feel free to come back with further questions.

    Best regards,
    Günter

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Need a new hook’ is closed to new replies.