- This topic has 9 replies, 2 voices, and was last updated 1 year, 10 months ago by David.
September 5, 2018 at 4:31 am #669160Michael
How can I change the behaviour of the search icon to open a dedicated search page – in my case: https://gleesongoldsmiths.ie/search – instead of the popup search form?
PaulGeneratePress 2.1.4GP Premium 1.7.2September 5, 2018 at 9:41 am #669546LeoStaffCustomer Support
Give this filter a shot:
https://docs.generatepress.com/article/generate_navigation_search_output/September 6, 2018 at 1:35 am #670090Michael
Thanks for your suggestion, but the filter only allows editing of the popup search box, not the behaviour of the navigation icon link.
What I want to do is change the a link on the nav search icon to “https://gleesongoldsmiths.ie/search” instead of “#” which is the default behaviour; so that when you click the search icon it opens a search page instead of the popup search box. I’ve edited the ‘navigation.php’ file in ‘inc/structure/navigation.php’ (changed all 3 instances of “#”) but it doesn’t work.
I’ve cleared my cache and tried it in several browsers.
PaulSeptember 6, 2018 at 6:42 am #670239DavidStaffCustomer SupportSeptember 7, 2018 at 1:29 am #670888Michael
Thanks for your suggestion, David, I’ve gone with that option.September 7, 2018 at 2:49 am #670950DavidStaffCustomer Support
Cool. You may find this article of interest for your mobile header:July 7, 2020 at 4:19 pm #1355844Neil
Hi, I want to do something similar (identical?). I managed to add the search icon to the menu items by adding this code
<i class="fas fa-search"></i>in the navigation label, and adding the Font Awesome official plugin. Is this the best way of going about this in terms of performance? Or is there a better way than using the plugin?
Also, the icon doesn’t show up in the mobile version for me (iPhone 7). It does, however, show in the mobile preview when using “Customize”.
Many thanks for your help.July 8, 2020 at 3:40 am #1356247DavidStaffCustomer SupportJuly 8, 2020 at 7:28 am #1356474Neil
Hi David, thanks for replying! No, I’m not using them elsewhere, although I will want to use a handful of icons with GenerateBlocks.
I’m new to SVG icons, and came across your super helpful instructions here: https://docs.generateblocks.com/article/adding-custom-svg-icons/ . This method works great with GenerateBlocks, and doesn’t require a plugin!
But I can’t figure out how to do something similar for the navigation menu. When I copy the html into the navigation label, nothing happens.July 8, 2020 at 7:35 am #1356483DavidStaffCustomer Support
That method should working inside the Navigation Menu Label – it may just need some SS to give it some size. If you want to add one and link me to a page ill take a look.
You may want to start a new topic where you can use the Site URL field to share the link privately.
- You must be logged in to reply to this topic.