[Resolved] Adding hook before search icon

Home Forums Support [Resolved] Adding hook before search icon

Home Forums Support Adding hook before search icon

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1999984
    Hans

    Hi,

    I would like to add the WPML language switcher on the right side of the search icon in the menu on this website: https://ebcgroup.nl

    I tried adding a hook with the PHP code for the switcher but I was not able to find the right setting to add it in this location.

    Could you point me toward a solutions?

    Best regards,
    Hans

    #2000054
    David
    Staff
    Customer Support

    Hi there,

    use the generate_menu_bar_items hook, and set the Hook priority to 20

    #2000072
    Hans

    Hi,

    Added a custom hook with generate_menu_bar_items and priority set to 20 but does not show the selector.

    #2000080
    David
    Staff
    Customer Support

    Can you change the Customizer > General -> Structure to Flexbox.

    #2001107
    Hans

    That fixed it David, site logo got weird size but i can fix that.

    Now it does work on desktop but not on mobile, do you have a solution for that as well?

    And one more question, when switching to Flexbox structure when ik go back to general after altering it the selection ability is gone. Is it supposed to do that?

    #2001409
    David
    Staff
    Customer Support

    Do you have any page caching enabled as i cannot see any changes?

    And one more question, when switching to Flexbox structure when ik go back to general after altering it the selection ability is gone. Is it supposed to do that?

    Yes, we have been deprecating the old theme structure. All current versions of the theme will now be Flexbox

    #2004692
    Hans

    Sorry, I had to revert to previous back-up version to work on it on a later date.

    If you could leave this threat open a little longer, then I will let you know when I have implemented the changes again. So you can have a look.

    #2004742
    David
    Staff
    Customer Support

    Thats ok – let us know when you need us.

    #2010678
    Hans

    Hi David,

    I have but back in place the hook and desktop is working as expected.
    As I mentioned in an earlier post, the language flags or not showing on mobile menu.

    Maybe you could help me with that.

    Hans

    #2010905
    David
    Staff
    Customer Support

    Try adding this CSS:

    .main-navigation div[class^="wpml"] ul {
        display: block !important;
    }
    #2010965
    Hans

    Awesome David, that did the trick, thanks!

    Hans

    #2011197
    David
    Staff
    Customer Support

    Great!! Glad to be of help!

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