Skip to:
Content
Pages
Categories
Search
Top
Bottom

Setting on search function above of the breadcrumb


  • Julia
    Participant

    @sub0810

    How can I put on the search function above of the breadcrumb in forum,topic,reply page?
    I got the Adding action code in the bbPress codex page.
    but I did not get the hook point for the Adding action.
    Please show me the hook point(XXXXXXXXXX) .

    //display bbPress search form above sinle topics and forums
    function rk_bbp_search_form(){
    if ( bbp_allow_search()) {
    ?>
    <div class=”bbp-search-form”>
    <?php bbp_get_template_part( ‘form’, ‘search’ ); ?>
    </div>
    <?php
    }
    }
    add_action( ‘XXXXXXXXXX'(forum,topic-page), ‘rk_bbp_search_form’ );
    add_action( ‘XXXXXXXXXX'(reply-page), ‘rk_bbp_search_form’ );

    <default>

    〇〇〇>〇〇〇>〇〇〇    
    [Search function] 

    <Customize>

    [Search function] 

    〇〇〇>〇〇〇>〇〇〇 

Viewing 8 replies - 1 through 8 (of 8 total)

  • Julia
    Participant

    @sub0810

    Supplement
    <Customize>

    [Search form]

    [Title]

    [ breadcrumb]


    Robin W
    Moderator

    @robin-w

    possibly

    bbp_theme_after_forum_title

    and

    bbp_template_before_replies_loop


    Julia
    Participant

    @sub0810

    Thank you for your help.
    But your code does not work correctly.

    bbp_template_before_replies_loop
    in reply page
    [Title]
    [Breadcrumb]
    [Search form]

    bbp_theme_after_forum_title
    in forum page
    [Forum title]
    [Search form]
    [Forum title]
    [Search form]
    [Forum title]
    and loop

    These are not my target.


    Robin W
    Moderator

    @robin-w

    try

    bbp_theme_before_forum_title


    Julia
    Participant

    @sub0810

    bbp_theme_before_forum_title

    I could not do it.
    It is same loop with bbp_theme_after_forum_title

    bbpress.org shows that “23. Show the bbPress forum search everywhere”.
    Layout and functionality – Examples you can use

    But it may be that there is not hook point to set on the search form above of the title.


    Robin W
    Moderator

    @robin-w

    the page title is a theme display, so you would need to hook to that.

    Your theme author might be able to offer either a hook, or tell you what template file is being used for the title.


    Julia
    Participant

    @sub0810

    I see. Thank you for your kindness.


    Robin W
    Moderator

    @robin-w

    🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar