Skip to:
Content
Pages
Categories
Search
Top
Bottom

Setting on search function above of the breadcrumb

  • @sub0810

    Participant

    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)
  • @sub0810

    Participant

    Supplement
    <Customize>

    [Search form]

    [Title]

    [ breadcrumb]

    @robin-w

    Moderator

    possibly

    bbp_theme_after_forum_title

    and

    bbp_template_before_replies_loop

    @sub0810

    Participant

    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

    try

    bbp_theme_before_forum_title

    @sub0810

    Participant

    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

    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.

    @sub0810

    Participant

    I see. Thank you for your kindness.

    @robin-w

    Moderator

    🙂

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