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?
Btw there are two “ava_after_main_container” in the list:
function 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' );
Hi 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,
Nikko
it 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. Link
I want to add something just before “post-entry” in the “article” section.
Hi 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