Site logo

[Support request] customize search bar

Home Forums Support [Support request] customize search bar

Home Forums Support customize search bar

Viewing 15 posts - 16 through 30 (of 35 total)
  • Author
    Posts
  • #2490536
    francesco

    hi david i did as you suggested but it doesn’t seem to work.
    in what sense is it inside a query?

    #2490800
    Fernando
    Customer Support

    We can’t seem to view the site right now as it’s set to “under construction”.

    Can you provide login credentials so we can check why it’s not working?

    Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    As David mentioned, you currently have the code nested under another @media query. The code provided by David wouldn’t work because of this.

    Example @media query:

    @media (min-width:1025px) {
    
    }

    Basically, you need to place the code provided by David out of anything similar to this one.

    #2491039
    francesco

    So if i place it under this it wouldn’t work?

    /* Set menu */
    @media (min-width: 769px) {
    .inside-navigation.grid-container {
        width: fit-content;
    }

    how can i close a query?

    #2491048
    Fernando
    Customer Support

    No, it wouldn’t work.

    You need to find the closing bracket of the @media query.

    In the code you shared, there’s only one } whereas there are two {.

    For reference, every @media query or CSS code needs to be closed. If it isn’t closed, there’s going to be a syntax error.

    So if that code you shared has no } for the @media query, you need to add one.

    If it does, you need to place David’s code after that closing bracket.

    If you put David’s code at the very top of everything, it should work as well.

    #2491191
    francesco

    so to close the @query i should use this structure?

    /* Set menu */
    @media (min-width: 769px) {
    .inside-navigation.grid-container {
        width: fit-content;
    }
    }

    or should i use this?

    /* Set menu */
    @media (min-width: 769px) {
    .inside-navigation.grid-container {
        width: fit-content;
        }
    }
    #2491356
    David
    Staff
    Customer Support

    Either will work, but for legibility you should use:

    
    /* Set menu */
    @media (min-width: 769px) {
    .inside-navigation.grid-container {
            width: fit-content;
        }
    }
    #2492517
    francesco

    thanks david, i noticed that among the various css codes i have others would appear to be open. I should close them all I guess?

    #2492803
    David
    Staff
    Customer Support

    Yeah, but be careful not to add ones that are not needed 🙂

    #2494018
    francesco

    ok david thanks. if I may I would like to ask you how to further modify the search bar. changing the typography in the customizer it changed and I don’t understand why honestly.
    it would appear to be missing some edge at the top

    #2494038
    francesco

    it would seem to be a body typography problem, if it decreases or increases the font everything changes. how can i avoid this?

    #2494132
    David
    Staff
    Customer Support

    If you want to change the font sizes for the input and the button you can use this CSS:

    .navigation-search input {
        font-size: 13px;
    }
    .navigation-search button {
        font-size: 15px;
    }
    #2494200
    francesco

    thanks david, can you explain how to remove the word search inside?

    #2494392
    David
    Staff
    Customer Support

    Which function did you use to add the Submit Button ? Can you share that here ?

    #2494426
    francesco

    I would like to delete this text that says “search”, as it is already present in the button on the right.

    #2494622
    Ying
    Staff
    Customer Support

    You can just go to that block and remove the Search placeholder text.

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