Support » Plugin: bbp style pack » Change search button text

  • Resolved George

    (@quantum_leap)



    Hello, is there a way to actually change the search form buttom text from “Search” to something else with your plugin?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Robin W

    (@robin-w)

    I’ve just released version 3.9.4 which allows you to do this

    go to

    dashboard>settings>bbp style pack>Search Styling

    and you’ll see a new item 5

    George

    (@quantum_leap)

    Robin, this is amazing, thank you! You think you could also add an option to change the actual search input field’s placeholder?

    • This reply was modified 4 months, 1 week ago by  George.
    Plugin Author Robin W

    (@robin-w)

    adding a placeholder is harder, as it can only be done by altering a bbpress template. Since themes can also change this, I don’t plan to add it to my plugin.

    However if you know how to change a file and ftp it to you site, you should be able to do this

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-search.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-search.php

    bbPress will now use this template instead of the original
    and you can amend this

    then change line

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

    to

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

    and change ‘text you want’ to whatever you want

    George

    (@quantum_leap)

    Worked great, thank you!

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