-
AuthorPosts
-
February 24, 2015 at 7:20 pm #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 10 years, 8 months ago by
hanslindstrom.
February 25, 2015 at 11:07 am #401958Hi 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ünterFebruary 25, 2015 at 4:42 pm #402161Hey 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.
February 25, 2015 at 6:03 pm #402247February 25, 2015 at 8:05 pm #402317Hey Günter,
Thank you for the good news, looking forward to the next release.
Thanks again for all help!
February 26, 2015 at 10:25 am #402551 -
This topic was modified 10 years, 8 months ago by
-
AuthorPosts
- The topic ‘Need a new hook’ is closed to new replies.
