Site logo

Archived topic

Put date line in Nav bar at the same level as menu items.

13 replies · Started by Dong on July 26, 2020

Viewing posts 1–14 of 14

Hi there,

Instead of using the Secondary Navigation there, you may want to use the Top Bar widget area.

That way it will all be inline by default.

Let us know :)

Thanks, Tom. But I already use the Topbar for something else. Anyway to level the two within the Nav?

-Dong.

OK, Tom. I think I got that done with these CSS codes:

.main-nav {
list-style:none;
display:inline;

}
.secondary-navigation ul {
display: inline;
}

Hope that won't break anything. :)

I don't see any issue with that.

You could also do this:

.secondary-navigation .inside-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
}

Thanks, Tom. Your code is way better, I use that.

A bit off-topic but since I have you here: I was able to customize the research results using filters, but any way to make the post headlines of search result archives, too? I can do that with CSS or Layout Customization but affect the entire site.

Here's an example of the search page, you'll note the headlines are the same as those of all other archive pages:

https://dongknows.com/?s=aimesh

Thanks,

-Dong.

Nevermind, Tom. I figure that out. :)

Glad you got it sorted :)

One more question, Tom. It seems each time I move from one tab of the Man Nav to another (like from Home to Review, or How To etc), the secondary Nav changes its size briefly (where font awesome icons line up vertically) before it gets back to the expected size. That doesn't happen consistently but most of the time. Is there any way to prevent that from happening?

https://dongknows.com/

Thanks,

-Dong

That's just font icons loading, unfortunately. Try using SVG images instead :)

Got it! How do I add SVG so that the icon's color will change according to the value of the menu item, the way the fonts do now?

They should do it by default. If not, you can give the SVG elements this attribute: style="color: currentColor;"

Do I treat them the way I normal images in regard to putting them on the menu? Or there's a way to do that similar to Font Awesome?

Hi there,

you can add them either using <img> HTML - but it won't allow you to change the colors using CSS for example on hover

The alternative is to open the SVG in a text editor / IDE or an app like this:

https://jakearchibald.github.io/svgomg/

And copy and paste the <svg> markup directly into the Menu Label.

This archived topic is closed to new replies.