Tagged: icon, navigation, social media icons
-
AuthorPosts
-
October 2, 2013 at 12:11 am #169034
Hi,
I use the “non-fixed header with social icons and additional navigation”.
How can I move the search icon from the main navigation next to the social media icons at the very right?
Thanks.
October 2, 2013 at 8:51 am #169184Hey colorit2!
You can add this on your custom.css or Quick CSS:
#top #menu-item-search { top: -75px; } #header_main { position: relative; z-index: 9999; }
Cheers!
IsmaelOctober 2, 2013 at 9:42 am #169210Thanks, but I look for a solution like Dude had posted it here:
https://kriesi.at/support/topic/move-search-icon-next-to-social-media-icons/#post-127113Unfortunately since the rewrite of the theme files with v2.3.1, this code does not work any more, it results in an “array” error.
- This reply was modified 11 years, 2 months ago by BeeCee.
October 3, 2013 at 9:39 pm #170089Hello!
A quick css solution like the above is your best bet to keep it working consistently
Cheers!
DevinOctober 5, 2013 at 1:39 am #170639Thanks, but this wasn’t as simple as it seemed :-(
Due to the fact, that the search icon is normally at the very right of the main menu and should now appear ABOVE it, but the main menu items should stay at the RIGHT of its container without space, it was hard for me to figure it out. But now it seems to work with this CSS, if someone needs it, too:/* Search-Icon next to the social bookmarks */ #top #header .social_bookmarks li:last-child { border-right-style: solid !important; border-right-width: 1px !important; } #top #menu-item-search { z-index: 100; top: -88px; } #top #menu-item-search a { text-decoration: none; } #header_main { position: relative; z-index: 9999; } /* Repositioning of the Search-Icon */ .main_menu ul { margin-bottom: 0; margin-right: -12px; margin-top: 0; padding: 0; } #top #menu-item-search { margin-left: -40px; top: -86px; z-index: 100; } #top .social_bookmarks { float: right; margin-right: 27px; }
Result:
Then there’s another error:
When I now reduce the width of my Firefox tab like a mobile view would be, then the search icon is completely away and the social icons on the very top are not centered.
October 6, 2013 at 2:54 am #170950 -
AuthorPosts
- The topic ‘How to move search icon next to social media icons?’ is closed to new replies.