Archived topic
Navigation Search Bar
13 replies · Started by Pawel on November 12, 2019
Hello,
I have some problem with navigation search bar (put search icon on the right side) on my website http://www.skleposz.pl
I tried to follow the instructions on this link:
https://generatepress.com/forums/topic/navigation-search-bar/page/3/.
I added in css:
.main-navigation .search-item {
display: none;
}
.main-navigation .search-item.custom {
display: block;
}
Unfortunately, two icons appear when I follow the instructions above.
What can I do with it?
Hi there,
Can you clear and disable your caching plugin first?
Done. I cleared site and disabled the caching plugin.
Ok just trying to see what we are trying to do here.
You prefer to use the FA icon and just want to hide the GP default icon?
Let me know :)
GP default icon looks good ;)
It would be nice if the search icon appeared in the mobile version as well.
Sorry I'm a little confused.
So what's the issue?
the FA search icon shouldn't be there by default.
Yea - You are right.
Just need to 1 search icon on the right side. That's all
Ok that case can you remove the FA icon and the CSS you've added first?
So I can see what the original issue was.
Thanks :)
Done ;)
Damn that's tougher than I thought.
Looks like using the previous with FA might be the easiest still.
Can you implement the method again?
Then we will hide GP's default icon with some CSS.
Sorry about that and let me know :)
Done.
I know it is tough. I spent a lot of time on it and finally gave up. That's why I write here ;)
This should do it:
.search-item a:before {
content: none;
}
Let me know :)
It works ;)
Thanks!
No problem :)