-
AuthorPosts
-
May 11, 2017 at 3:38 pm #791689
We would like to customize the order of all elements in our main navigation. Partly we were already successful, but now the search button lost part of its functionality. (We need the shop button on the very right and want to see all of the items in the mobile menu)
so we want to keep the following functionality (last search button, outside the menu):
But currently we just get directed to the search page (first search button in the menu, at the position we want)
Thanks
PS: we already looked at following posts:
https://kriesi.at/support/topic/how-to-add-icons-to-the-menu-links-in-enfold/
https://kriesi.at/support/topic/search-button-on-mobile/#post-748090
https://kriesi.at/support/topic/search-button-on-mobile/#post-431521- This topic was modified 7 years, 6 months ago by Manuel. Reason: to clarify the issue
May 12, 2017 at 11:32 am #792221Hey VL-CA,
What did you do to get the search icon twice? Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaMay 12, 2017 at 11:09 pm #792538we put it in the menu like that:
May 13, 2017 at 6:55 am #792643Hi,
Let us know when you got the WP credentials.
Best regards,
John TorvikMay 15, 2017 at 11:27 am #793256Here you go, you’ll find the access details in the private content box…
Hope you can help us.best,
ManuelMay 15, 2017 at 7:30 pm #793463Hi,
The menu can not work as a shortcode the way you used it.
https://kriesi.at/support/topic/move-search-icon-to-secondary-menu/Here is an example, how moving to top bar works, to help you guide further on the customization.
Best regards,
BasilisMay 30, 2017 at 10:07 pm #801678Thank you Basilis. With this we made it work somehow.
Now we hide our custom menu elements in the desktop version via css and added the shop button in functions.php as you suggested (just as the search button is integrated). For the mobile version we on the contrary hide these extra search and shop buttons.
It would have been great to get around these duplicates but unfortunately it seemed too complicated to actually integrate it the way we anticipated.
If anyone else needs something similar it might work in the following direction:
#1 Add span to Menu with “your-fancy-button” as id or class
#2 catch the element in php (eg.: https://stackoverflow.com/questions/6366351/getting-dom-elements-by-classname )
#3 Make a custom Filter for it (https://code.tutsplus.com/tutorials/adding-custom-hooks-in-wordpress-custom-filters–cms-26508)best,
Manuel(PS: sorry for the late replay, I’ve been on holiday :D)
June 1, 2017 at 4:42 pm #802649Hi Manuel,
Glad you got it working for you and thank you for sharing! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.