- This topic has 3 replies, 2 voices, and was last updated 5 years, 12 months ago by Andrew Misplon.
- AuthorPosts
- October 12, 2018 at 7:19 am #10709
OstseeParticipantHi,
I purchased the Ultra Premium.
I wanna use the original search icon/box in the Topbar. NOT in main-navigation.
I removed all .menu-search from /themes/ultra-child/header.php
I pasted the search code now in /themes/ultra-child/parts/top-bar.phpI modified the css code, but it dont work. The searchbox disappear on click or mouseover
Have anyone tried this?October 12, 2018 at 9:29 am #10710
Andrew MisplonKeymasterHi Ostsee
Thanks for posting 🙂
Unfortunately, this isn’t a simple change. The header search uses JavaScript. The search is identified, in part, by the parent selector
main-navigation
. If you remove the search from that div, the JavaScript can’t locate the search form. The CSS targetting the search icon is also prefixed with themain-navigation
class, moving the search out of that div means you’d have to add the styling to your child theme and remove the main-navigation` selector.Have you perhaps considered using: https://wordpress.org/plugins/bop-search-box-item-type-for-nav-menus/
October 12, 2018 at 3:06 pm #10711
OstseeParticipantHi Andrew,
thanks for your posting.bob-search-box is a good idea. it works with customisation.
October 12, 2018 at 3:09 pm #10712
Andrew MisplonKeymasterSuper, glad to hear you’ve been able to make that work 🙂 Thanks for giving it a try.
- AuthorPosts
You must be logged in to reply to this topic.