[Support request] Customize the search bar

Home Forums Support [Support request] Customize the search bar

Home Forums Support Customize the search bar

Viewing 15 posts - 16 through 30 (of 32 total)
  • Author
    Posts
  • #2344218
    Ying
    Staff
    Customer Support

    You can upload it to here: https://postimages.org/

    Then share the link with us.

    #2346027
    Justin
    #2346047
    Ying
    Staff
    Customer Support

    How can I remove the little box around the search icon and anyway I can make the search rectangular box rounded on the edges?

    Try this CSS:

    button.wp-block-search__button.has-icon {
        border: 0;
    }
    
    .wp-block-search__inside-wrapper {
        border-radius: 10px;
    }

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

    #2346069
    Justin

    If I make it more rounded like 30px it creates holes how do I fix that?
    https://postimg.cc/N9TGryZr

    #2346070
    Justin

    it also has a different shade of color inside box

    #2346473
    David
    Staff
    Customer Support

    You can add this CSS to change the input / buttons background colors:

    
    .wp-block-search input,
    .wp-block-search__button{
    	background-color: transparent;
    }
    #2346817
    Justin

    Fixed all the issues except when i click the search bar to type some of the issues come back
    https://postimg.cc/ZCD41VFc

    #2346821
    Ying
    Staff
    Customer Support

    Add this CSS as well:

    input[type="search"]:focus {
        background-color: transparent !important;
    }
    #2348765
    Justin

    That fixed that issue but now if someone clicks on the drop-down previously typed in text the blue color comes back without filling the entire search bar, and is this the best way to make the changes by adding this css code in the customizer? how big of an impact is it on site speed?
    https://postimg.cc/HrJjRZ15

    #2348815
    Ying
    Staff
    Customer Support

    There won’t be any noticeable impact on speed regarding the CSS size.

    Can you link me to your site where we can see the search bar?

    Please be noted, that the search block is NOT from the theme, it’s from WP and the theme doesn’t have control over it, it’s kind of out of the scope of the theme support, but we are still trying our best to help you out here.

    #2348926
    Justin

    Removed

    #2348927
    Justin

    Thank you for helping

    #2348928
    Justin

    I had some other questions like my homepage header and recent blogs are not centered on mobile devices and I couldn’t figure out how to center the read more lable on the archive cards?

    #2348957
    Ying
    Staff
    Customer Support

    How do you make the previous searches show up in the first place?

    I tried searching for several words, but don’t see the drop-down you mentioned.

    For other questions, please open new topics, thanks!

    #2348992
    Justin

    not sure

Viewing 15 posts - 16 through 30 (of 32 total)
  • You must be logged in to reply to this topic.