Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1388006
    ggoudey
    Participant

    How do I adjust the search bar height, font size and text?

    Andrew

    http://www.peacelocalfood.info/

    #1388381
    Rupok
    Member

    Hey Andrew,

    Thanks for writing in! You can add this under Custom > CSS in the Customizer.

    .form-search .search-query {
        height: 40px;
        font-size: 15px;
    }

    Hope this helps.

    Cheers!

    #1389545
    ggoudey
    Participant

    Hi Rupok. Yes thank you, that made the searchbar not so fat. The text size is OK also.

    To control the section area, I am able to reduce the padding in the top section for the searchbar to 0, and or add ptn to the class area… to minimize space. But I can’t seem to find a way to adjust below the searchbar? Also, how do I add alternate text to the search field?

    #1389816
    Darshana
    Moderator

    Hi there,

    You can add this under Custom > CSS in the Customizer.

    
    .x-search-shortcode {
        margin-bottom: 1.2em;
    }
    

    To change search text, add the following code under Customizer, Custom > JavaScript area.

    
    jQuery(function() {
      jQuery('.search-query').attr('placeholder', 'Search for Stuff');
    });
    

    Hope that helps.

    #1390628
    ggoudey
    Participant

    Yes. All suggestions have worked nicely. Thank you.

    #1390645
    Prasant Rai
    Moderator

    Happy to hear that. Feel free to ask us again. Have a great day! 🙂

  • <script> jQuery(function($){ $("#no-reply-1388006 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>