-
AuthorPosts
-
February 22, 2019 at 5:14 pm #1070396
I want to put something before content. I have tried “ava_after_main_title” 、”ava_after_main_container” and “ava_after_content”, all worked but not “ava_before_content”. is there any different between those hooks with ava_before_content?
February 22, 2019 at 5:15 pm #1070398Btw there are two “ava_after_main_container” in the list:
February 23, 2019 at 3:44 am #1070557function wpb_widgets_init_ad_f1() { register_sidebar( array( 'name' => 'banner_before_content', 'id' => 'after_header_ad_f1', 'before_widget' => '<div class="after_header_ad">', 'after_widget' => '</div>', 'before_title' => '<h2 class="chw-title">', 'after_title' => '</h2>', ) ); } add_action( 'widgets_init', 'wpb_widgets_init_ad_f1' ); function after_header_ad_f1() { if ( is_bbpress() && is_active_sidebar( 'after_header_ad_f1' ) ) : echo " <div id='header_ad_f1' class='container'>"; dynamic_sidebar( 'after_header_ad_f1' ); echo "</div>"; endif; } add_action( 'ava_before_content', 'after_header_ad_f1' );February 23, 2019 at 6:05 am #1070567Hi debra15,
Thanks for pointing it out in our documentation.
This hook: ava_before_content has also been removed, are you intending to add it after the body tag?
Try using this hook instead: ava_after_body_opening_tag
We’ll be updating our documentation :)Best regards,
NikkoFebruary 23, 2019 at 7:14 am #1070600it would be nice to hear from that – f.e. in the changelog. Because these hooks are often the starting point for changes via the child theme functions.php.
And in Dokumentation to have an actual Set of hooks and filters. LinkFebruary 23, 2019 at 11:03 am #1070648I want to add something just before “post-entry” in the “article” section.
February 26, 2019 at 9:01 am #1071673Hi debra15,
There’s no hook in that location, try to override loop-index.php instead in your child theme.
@Guenni007: we will suggest this to Kriesi :)Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.
