• With the new menu implemented, a problem appears.
    I had wrapped the menu tag with
    ‘link_before’ => ‘<span itemprop = “name”>’,
    ‘link_after’ => ‘</span>’,

    it was working very well.
    Now, inside the menu label the svg image is interposed, which expands the image and warps the menu.
    Is there any solution? Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author ThemeZee

    (@themezee)

    Hi there,

    You can try the before and after arguments instead of link_before and link_after:
    https://developer.www.ads-software.com/reference/functions/wp_nav_menu/

    Other than that, it really depends on why you need those span tags and what you’re trying to achieve. I’m sure there is some technical solution.

    Cheers,
    Thomas

    thank you very much for your reply. The solution you propose is not viable, since I want to wrap the menu tag and not the link. the reason for wrapping the tag is to place the corresponding schema tag. Indeed, there is another way to do it and it is that when putting the menu tag in the menu configuration, add the <span> to it, but that solution is not very clean, since, in the case of a complex menu, the user would have I have to modify each of the links by hand, when there is link_before and link_after, to do so.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘New menu’ is closed to new replies.