Site logo

Archived topic

Text based logo in Menu Bar

13 replies · Started by Dominik on October 30, 2016

Viewing posts 1–14 of 14

Hm, sorry Tom - I don't have the "inside navigation" Hook available and the code does not work in the other hooks (tried with several ones).

I've added it with the simple php plugin and it worked. Would also be great if this would be an easy to use option besides the image logo in the navigation design menu. Also would love to have an option for a well styled full search bar in the navigation bar (floating right).

Pretty much like this, but in the primary menu: https://generatepress.com/forums/topic/top-menu-with-search-bar/

Glad you got it working with the code.

Using the title is a little tricky, as the length of the title etc.. really changes what it would look like. I'll work on it though.

The solution in that topic would work for the primary menu as well, you would just have to replace generate_inside_secondary_navigation with generate_inside_navigation.

Thanks, looks great (with some right and top padding): https://dotzauerinstitut.de/

However in mobile the search looks weird and steals a lot of the space - what could I do about that? See: http://imgur.com/a/cRG1p

Any way to shrink it to a font awesome search icon or the like and pop up?

You can hide it on mobile:

@media (max-width: 768px) {
    .your-search-class {
        display: none;
    }
}

Then enable the navigation search option, and hide it on desktop:

@media (min-width: 769px) {
    .main-navigation li.search-item {
        display: none;
    }
}

Hope this helps :)

Ah good idea!

Still 2 Problems:

1. The Search button does not allow for instant typing - you manually have to click in the search field before you can type, which can be really annoying esp. the first few times you use it. See in this video: https://cl.ly/1v1R351L463a

2. Also the site title is no longer a link to the Homepage. I could just use in the php code snippet, but the I'd need to reset/compensate for all of the css applying to the link. Is there any smarter solution?

Thank you!

1. Hmm that's not default behavior - take a look here: http://demo.generatepress.com/

One of your plugins/modifications might be causing this.

2. You'll need to include the HTML for the link in your custom function.

Awesome :)

Hey Tom! I'd like to add site title into my navigation bar as well. Tried the method above out by adding it into Code Snippets, but can't seem to have it work. Mind checking out for me? Thanks!

http://undermywhitecoat.com

Hey Leo - I'm so sorry! I have not been using Code Snippet for some time and I didn't click the activate button.
So sorry for the trouble! Have a great day ahead!

No worries :) Its an easy one to miss. Have a great day as well!

This archived topic is closed to new replies.