Site logo

[Support request] customize search bar

Home Forums Support [Support request] customize search bar

Home Forums Support customize search bar

Viewing 5 posts - 31 through 35 (of 35 total)
  • Author
    Posts
  • #2494667
    francesco

    I tried deleting this line, but it doesn’t seem to work.

    placeholder="<?php echo esc_attr( apply_filters( 'generate_search_placeholder', _x( 'Search &hellip;', 'placeholder', 'generatepress' ) ) ); ?>"

    #2494680
    Ying
    Staff
    Customer Support

    Have you tried editing that search block as I suggested?

    #2494701
    francesco

    forgive me ying but how do I edit that search block? customizer?

    #2494706
    francesco

    thnx ying i understand..

    add_filter( 'generate_navigation_search_output', function() {
        printf(
            '<form method="get" class="search-form navigation-search" action="%1$s">
                <input type="search" placeholder="...." class="search-field" value="%2$s" name="s" title="%3$s"  />
    			<button class="nav-search-button">Search</button>
            </form>',
            esc_url( home_url( '/' ) ),
            esc_attr( get_search_query() ),
            esc_attr_x( 'Search', 'label', 'generatepress' ) 
        ); 
    } );
    #2494746
    Ying
    Staff
    Customer Support

    Awesome 🙂

Viewing 5 posts - 31 through 35 (of 35 total)
  • You must be logged in to reply to this topic.