[Support request] Wordsmith Site Customization

Home Forums Support [Support request] Wordsmith Site Customization

Home Forums Support Wordsmith Site Customization

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #622124
    Ranjit Kumar

    Hi Tom, I have just installed wordsmith them on my site Sarkari Naukri, how can I reduce the sidebar search box height (i want it to be a little shorter) Little narrow because it’s too big in size.
    Plz, help regarding this.

    GP Premium 1.6.2
    #622172
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    input[type="search"] {
        padding: 10px;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #622952
    Ranjit Kumar

    I have added this CSS but there is no change in search box size. EVen i have checked in non-cached version

    #622959
    David
    Staff
    Customer Support

    Hi there,

    there is already some CSS from the Site customisation that is being applied to all of the INPUT fields. So to make that work, you need to give it some importance:

    input[type="search"] {
        padding: 10px !important;
    }
    #624913
    Ranjit Kumar

    Thanks it worked. but i have one more question, can i change the word Search…(inside the search box) to my custom word.

    #624917
    Mr McMarry

    Use this code:

    add_filter( 'generate_search_placeholder', 'search_field_custom' );
    function search_field_custom()
    { 
        return 'Replace this to your custom words';
    }

    Adding PHP in child theme

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