Forums

Using img Tags for Custom Menus (3 posts)

  1. bbuster79
    Member
    Posted 7 months ago #

    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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    You'd need to use CSS to apply images to your menu links.
    CSS Tutorials
    Learning CSS

  3. bbuster79
    Member
    Posted 7 months ago #

    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

Reply

You must log in to post.

About this Topic