[Support request] Elements -Hook- generate_menu_bar_items

Home Forums Support Elements -Hook- generate_menu_bar_items

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1495866
    Kumar

    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

    #1496005
    Leo
    Staff
    Customer Support

    Hi there,

    Are you using the latest versions of GeneratePress theme and GP Premium plugin with the Flexbox version activated?
    https://docs.generatepress.com/article/generatepress-and-gp-premium/

    That hook is only available in the flexbox version.

    Let me know πŸ™‚

    #1496245
    Kumar

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

    Thank you Leo:-)

    #1496282
    Leo
    Staff
    Customer Support
    #1497315
    Kumar

    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

    #1497341
    Leo
    Staff
    Customer Support

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

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