Site logo

Archived topic

Navigation - lightweight social icons

3 replies · Started by BarnaB on January 3, 2017

Viewing posts 1–4 of 4

Hi Tom,

So here is the question of the day :) Found this tutorial and it works great, but how can i make sure the search icon is the last item in the row ? :)

Thank you

Hi there,

You would have to hide the default search item:

.main-navigation .search-item {
    display: none;
}

Then add your own custom link in the menu with these settings:

Navigation Label/Link Text: <i class="fa fa-fw fa-search" aria-hidden="true"></i><span class="screen-reader-text">Search</span>

Custom Classes: search-item menu-item-float-right custom-search-item

Then add this CSS:

.main-navigation .search-item.custom-search-item {
    display: block;
}

Then you can order it however you like :)

awesome ! Thank you :)

You're welcome :)

This archived topic is closed to new replies.