[Support request] Put date line in Nav bar at the same level as menu items.

Home Forums Support [Support request] Put date line in Nav bar at the same level as menu items.

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

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1377131
    Dong

    Hi guys,

    I follow this:

    https://generatepress.com/forums/topic/add-date-on-navigation-bar/

    and was able to put a date line on my Nav bar. How can I make the live share the same level as other menu items?

    https://dongknows.com

    Specifically, I’d like to have the social icons to be on the right side of the text, on the same line.

    Thanks,

    -Dong.

    #1377189
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #1377255
    Dong

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

    -Dong.

    #1377416
    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. πŸ™‚

    #1378203
    Tom
    Lead Developer
    Lead Developer

    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;
    }
    #1378260
    Dong

    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.

    #1378507
    Dong

    Nevermind, Tom. I figure that out. πŸ™‚

    #1378573
    Tom
    Lead Developer
    Lead Developer

    Glad you got it sorted πŸ™‚

    #1381375
    Dong

    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

    #1382047
    Tom
    Lead Developer
    Lead Developer

    That’s just font icons loading, unfortunately. Try using SVG images instead πŸ™‚

    #1382135
    Dong

    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?

    #1382336
    Tom
    Lead Developer
    Lead Developer

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

    #1382350
    Dong

    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?

    #1382663
    David
    Staff
    Customer Support

    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.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.