This topic has 2 replies, 2 voices, and was last updated 9 years by Kamal.

  • Author
  • #37652
     chazzzzy
    Participant

    Do you guys know how to style the bbpress Forums Search form to look like the Buddypress Groups Search form like you have on your demos, screenshots attached..

    I know it involved altering the bbpress/form-search.php

    Was just wondering if anyone’s done that here.

    Attachments:
    You must be logged in to view attached files.
    #37684
     chazzzzy
    Participant

    OK.. I solved this..

    Grab the file in the main theme folder kleo/bbpress/form-search.php

    Copy it to your child theme kleo-child/bbress/form-search.php

    And change the following:

    On line 16, change from:

    COPY CODE
    
            <input tabindex="<?php bbp_tab_index(); ?>" type="text" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" />
    

    to:

    COPY CODE
    
            <input tabindex="<?php bbp_tab_index(); ?>" type="text" placeholder="<?php _e( 'Search Forums...', 'bbpress' ); ?>" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" />
    

    You guys might want to change this file in the theme so that there is consistency in the looks.

    Thanks!

    Charles

    #37688
     Kamal
    Moderator

    Hi Charles,
    Congratulations. You have made it. You have perfectly added the placeholder attribute. Thank you very much.
    I am marking it as resolved then.
    Cheers,
    Kamal

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?