- This topic has 15 replies, 4 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
January 19, 2023 at 6:48 am #2501472
Ajay
I have 2 questions-
1st- how can I make the search box sticky on the top as it is while scrolling up the page?
2nd – how can I make menu bar navigation pages as button so I could control that in generateblocks pro?January 19, 2023 at 8:20 am #2501751David
StaffCustomer SupportHi there,
can you share a link to your site where i can see this ?
January 19, 2023 at 8:23 am #2501759Ajay
Yes
January 19, 2023 at 11:06 am #2501987Ying
StaffCustomer SupportLet’s deal with one question at a time.
In order to make the search box sticky, it has to be in its own container, so the 1st container needs to be splitted into 3 containers.
https://www.screencast.com/t/GQ7geHQb6January 19, 2023 at 10:29 pm #2502362Ajay
Yes, i did that. what should i do now
January 19, 2023 at 11:54 pm #2502415Fernando Customer Support
Hi Ajay,
You’ll need to take the 3 Container Blocks out of the Parent Container to make the Search Box sticky.
Once you’re done with this, let us know.
January 19, 2023 at 11:54 pm #2502417Ajay
yes i have done that
January 20, 2023 at 12:05 am #2502427Fernando Customer Support
They’re still inside a parent container.
For clarity, can you share a screenshot of your structure as seen in the list view?
Uploading Screenshots: https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshots
January 20, 2023 at 12:20 am #2502444Ajay
Now I have done that, i have now three containers
January 20, 2023 at 12:24 am #2502446Fernando Customer Support
Great! Now, try adding this through Appearance > Customize > Additional CSS:
.gb-container.gb-container-58ea0e21.sticky-container { position: sticky; top: 0; z-index: 10000; }January 20, 2023 at 1:01 am #2502471Ajay
how to add gradient outside the search bar like given website in private box
January 20, 2023 at 1:47 am #2502507Fernando Customer Support
The Search box in your reference site has a different structure. It’s likely custom coded or from a plugin.
With the WP Search Block, you can try adding this CSS:
.wp-block-search__inside-wrapper { background: linear-gradient(90deg, #FF596F, #E41421, #ED207B, #6551CC, #47CCCC, #99CCBB, #FF596F); padding: 1px; }This I believe is the closest you can achieve with the structure of the WP Search Block.
January 20, 2023 at 2:09 am #2502529Ajay
yup thanks, it’s cool, but it is spreading too much light while clicking on the box eg. red color is too much light I don’t need the inside color I just want it outside. also, between the search field and button is showing some reddish color which I don’t want. please look in private box
January 20, 2023 at 4:06 am #2502658David
StaffCustomer SupportAdd this CSS:
.wp-block-search .wp-block-search__button { margin-left: 0; } .wp-block-search input[type="search"] { background-color: #fff !important; }January 20, 2023 at 6:25 am #2502830Ajay
Working well thanks.
2nd – how can I make menu bar navigation pages as buttons so I could control that in generateblocks pro -
AuthorPosts
- You must be logged in to reply to this topic.