[Resolved] Shortcode in header

Home Forums Support [Resolved] Shortcode in header

Home Forums Support Shortcode in header

  • This topic has 9 replies, 3 voices, and was last updated 1 month ago by David.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2281137
    Charlotte

    Hi!

    I have added shortcode for a language switcher to header with element with hook “generate_menu_bar_items” for two of my sites. On one site, it works perfectly, and on the other one it doesn´t. The sites are very similar, and I have added switcher and element in the same way. Could you please help?

    #2281166
    Fernando
    Customer Support

    Hi Charlotte,

    Are you setting line-height of main nav menu items to 24 in the Typography or somewhere else? I’m not sure where the specific source of this CSS because it seems your optimizing CSS through your optimization plugin.

    If you revert it back to the default 1.5 value, as it is in the other site, you’ll see it fixed.

    Kindly let us know.

    #2281180
    Charlotte

    Hi Fernando,

    Thank you so much, works like a charm!

    Hope you have a good day and thank you for your support.

    //Charlotte

    #2281192
    Fernando
    Customer Support

    You’re welcome Charlotte!

    #2281333
    Charlotte

    Hello again… turns out it works as in it looks as it should, but when I hover over a flag in the dropdown it disappears, making it impossible to change language. Could you please have a look?

    #2281348
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to the site ? I will mark the topic unresolved so you can add it to the private information field.

    #2281378
    Charlotte

    Thank you, link:

    #2281386
    David
    Staff
    Customer Support

    Hi there,

    if you select the Grid Block that is the desktop hero section. In Advanced > Additional CSS Class(es) add: relative-position

    Then add this CSS to your site:

    .relative-position {
        position: relative;
        z-index: 0;
    }
    #2281540
    Charlotte

    Thank you, much appreciated, it resolved it.

    #2281560
    David
    Staff
    Customer Support
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.