Site logo

Archived topic

Elements -Hook- generate_menu_bar_items

5 replies · Started by Kumar on October 19, 2020

Viewing posts 1–6 of 6

Hi there,

For some reason, this is not available in element (hooks)
generate_menu_bar_items

So had to create a custom hook - but doesn't seem to work.

I am trying to add the language switcher shortcode - but for some reason, nothing seems to appear on my website menu (desktop or mobile)(image added below)

Also have the below CSS added
/*Adjust language bar*/
.main-navigation .menu-bar-items {
flex-direction: row-reverse;
}

Thanks
Kumar

yes, your right. I was using floats. Fixed it now..

Thank you Leo:-)

No problem :)

sorry Leo

Could you please check- the translation shortcode jumps three times before it reaches the final location.

url below

Have the below CSS
/*Adjust language bar*/
.main-navigation .menu-bar-items {
flex-direction: row-reverse;
}
/*adjusting width of language box for dropdown*/
.trp-language-switcher .trp-ls-shortcode-current-language,
.trp-language-switcher .trp-ls-shortcode-language {
width: unset !important;
}
.trp-ls-shortcode-language {
display: none !important;
}

Using the Latest GP Premium and GP theme

I would assume it's an issue from one of your caching plugins.

This archived topic is closed to new replies.