Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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?

    #1070398

    Btw there are two “ava_after_main_container” in the list:

    #1070557
    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' );
    #1070567

    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

    #1070600

    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

    #1070648

    I want to add something just before “post-entry” in the “article” section.

    #1071673

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.