• I’d like to create a menu where I’m using image links. I first tried just putting the img tag and the image url straight into the label field of the custom menus form. That didn’t work.

    I’m thinking now maybe using the items_wrap???

    Not sure if that would work or even how to code that within the wp_nav_menu array.

    If anyone has any suggestions please let me know. I could always go with a plugin but it seems like this would be something fairly easy to do with default wp functionality. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’d need to use CSS to apply images to your menu links.
    CSS Tutorials
    Learning CSS

    Thread Starter bbuster79

    (@bbuster79)

    I would use css for backgrounds but I’m asking about image links.

    I found inputting img tags into the label fields does work. But you have to enter the absolute file path. Unless I’m doing something wrong, you can’t call the image using a relative file path. It make it more tedious to code and is more labor once I port my test site to a production environment

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using img Tags for Custom Menus’ is closed to new replies.