- This topic has 34 replies, 4 voices, and was last updated 3 years, 1 month ago by
Ying.
-
AuthorPosts
-
January 10, 2023 at 11:06 am #2490536
francesco
hi david i did as you suggested but it doesn’t seem to work.
in what sense is it inside a query?January 10, 2023 at 6:20 pm #2490800Fernando 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
@mediaquery. The code provided by David wouldn’t work because of this.Example
@mediaquery:@media (min-width:1025px) { }Basically, you need to place the code provided by David out of anything similar to this one.
January 11, 2023 at 1:36 am #2491039francesco
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?
January 11, 2023 at 1:43 am #2491048Fernando 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.
January 11, 2023 at 4:02 am #2491191francesco
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; } }January 11, 2023 at 6:31 am #2491356David
StaffCustomer SupportEither will work, but for legibility you should use:
/* Set menu */ @media (min-width: 769px) { .inside-navigation.grid-container { width: fit-content; } }January 12, 2023 at 1:55 am #2492517francesco
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?
January 12, 2023 at 7:19 am #2492803David
StaffCustomer SupportYeah, but be careful not to add ones that are not needed 🙂
January 13, 2023 at 3:16 am #2494018francesco
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 topJanuary 13, 2023 at 3:40 am #2494038francesco
it would seem to be a body typography problem, if it decreases or increases the font everything changes. how can i avoid this?
January 13, 2023 at 5:42 am #2494132David
StaffCustomer SupportIf you want to change the font sizes for the
inputand thebuttonyou can use this CSS:.navigation-search input { font-size: 13px; } .navigation-search button { font-size: 15px; }January 13, 2023 at 6:43 am #2494200francesco
thanks david, can you explain how to remove the word search inside?
January 13, 2023 at 8:01 am #2494392David
StaffCustomer SupportWhich function did you use to add the Submit Button ? Can you share that here ?
January 13, 2023 at 8:29 am #2494426francesco
I would like to delete this text that says “search”, as it is already present in the button on the right.
January 13, 2023 at 11:55 am #2494622Ying
StaffCustomer SupportYou can just go to that block and remove the Search placeholder text.
-
AuthorPosts
- You must be logged in to reply to this topic.