Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change standard button into own graphic button ?


  • baraberle
    Participant

    @baraberle

    Hello,

    how is it possible to change the standard button into a graphic own button ?

    How and where must be change what ? Who can help ?

    best regards from germany tony

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

  • gaetanbuddypress
    Participant

    @gaetanbuddypress

    Hello Baraberle,

    Have a look there:

    /wp-content/bp-themes/bpmember/images

    and

    /wp-content/themes/bphome/images

    You should find what you want.


    baraberle
    Participant

    @baraberle

    hi gaetan,

    look at the top of the page and see the SEARCH button….this one I want to change…

    what do you think now ?

    regards

    tony


    baraberle
    Participant

    @baraberle

    nobody there for help ?


    gaetanbuddypress
    Participant

    @gaetanbuddypress

    Maybe have a look in this file, lines 586 (more or less):

    /wp-content/plugins/buddypress/bp-core/bp-core-templatetags.php


    baraber
    Participant

    @baraber

    Hi I found that line which is the one for the button….:

    <input type=”submit” name=”search-submit” id=”search-submit” value=”‘ . __( ‘Search’, ‘buddypress’ ) . ‘” />

    ‘ . wp_nonce_field( ‘bp_search_form’ ) . ‘

    who knows how the line is when I want put in the buttonimage: searchbutton.gif ? So that it works with the look of that created button ?

    THX in ADV Tony


    baraber
    Participant

    @baraber

    does nobody did it before ?

    regards tony


    Jeff Sayre
    Participant

    @jeffsayre

    This is just off the top of my head. No guarantees. Try something like this:

    <input type="image" name="search-submit" id="search-submit"
    src="/path/to/your/submit.gif" alt="submit" />

    Please realize that since you are hacking the core (making changes to a core BuddyPress file), the next time you update BP, your changes will be lost. Instead, you should create an alternate function for bp_search_form() and place that in a bp-custom.php file.


    baraber
    Participant

    @baraber

    Hi Jeff,

    first of all thx for your soon reply. But this doesn´t work because it only shows the word search but not the button as the background: here is the full code of the search function again

    function bp_search_form() {

    $form = ‘

    <form action=”‘ . bp_search_form_action() . ‘” method=”post” id=”search-form”>

    <input type=”text” id=”search-terms” name=”search-terms” value=”” />

    ‘ . bp_search_form_type_select() . ‘

    <input type=”submit” name=”search-submit” id=”search-submit” value=”‘ . __( ‘Search’, ‘buddypress’ ) . ‘” />

    ‘ . wp_nonce_field( ‘bp_search_form’ ) . ‘

    </form>

    ‘;

    echo apply_filters( ‘bp_search_form’, $form );

    }

    do you have another idea ?

    thx in adv. best regards tony

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Change standard button into own graphic button ?’ is closed to new replies.
Skip to toolbar