• Hi @realloc,

    I’ve used this plugin in a recent project and we used the Divi theme.

    Unfortunately the language menu is added to every menu, although I have just selected the main menu. If you have an idea to fix it, I will happily test it.

    All the best,
    Torsten

    P.S.: Hope you are fine and hopefully we can meet again soon at a WordCamp!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    Hi Thorsten,

    the addon uses get_nav_menu_locations. You could check if those menues share the same locations (just a longshot).

    I’m still vacationing for some days but I can try next week to understand why this can fail.

    Cheers,
    Dennis

    PS I’m fine, thank you! I hope we can meet at a real (not virtual) WordCamp soon!

    Thread Starter Torsten Landsiedel

    (@zodiac1978)

    Hi @realloc,

    thanks for the hint with get_nav_menu_locations, but I couldn’t solve it.

    It shows all available locations correctly in the settings and there is just one location set. But the switch is added to all menus.

    Any idea what is going wrong here?

    All the best,
    Torsten

    Thread Starter Torsten Landsiedel

    (@zodiac1978)

    The problem just appears with menus in the global header/footer (via Theme Builder) or added to the content through the menu module.

    Those menus don’t have any “hard” locations set, I assume.

    It doesn’t appear with the normal menus (with location).

    Maybe there could be added a check if a location exists?

    Will test this and report back if I have some more insights …

    All the best
    Torsten

    Plugin Author Dennis Ploetner

    (@realloc)

    Thanks for your help!

    Thread Starter Torsten Landsiedel

    (@zodiac1978)

    Hi @realloc,

    it seems that Divi is using the first location (“primary-menu“) on every menu which has no explicit location. So if a menu module is used in the content or in the theme builder it gets the primary-menu location and therefore breaks your plugin.

    It is easy to work around the issue, because of your great plugin. You can just add some classes to the menu item and then you can hide it for the menus where you don’t want it.

    This could maybe happen again with Gutenberg and full site editing. Don’t know at the moment what they do with the location in this case …

    All the best
    Torsten

    Plugin Author Dennis Ploetner

    (@realloc)

    Thanks a lot for your research on this topic!

    Cheers,
    Dennis

    Thread Starter Torsten Landsiedel

    (@zodiac1978)

    The bug is reported to elegantthemes/Divi and hopefully they will have an idea how to fix it. I assume it would solve the issue if they just omit the theme location in those cases, but this needs to be checked if this has any side effects I don’t know of …

    All the best
    Torsten

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Compatibility with Divi theme’ is closed to new replies.