Site logo

Archived topic

Shortcode in header

9 replies · Started by Charlotte on July 12, 2022

Viewing posts 1–10 of 10

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?

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.

Hi Fernando,

Thank you so much, works like a charm!

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

//Charlotte

You’re welcome 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?

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.

Thank you, link:

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;
}

Thank you, much appreciated, it resolved it.

Glad to hear that!

This archived topic is closed to new replies.