Bharathi
Bharathi

Reputation: 539

How to include an image link in wordpress menus?

I'm using wordpress twentyfourteen theme, here i just want to add image links instead of text links from admin panel as dynamically in wp_nav_menu.

See my code that i'm expecting output sample,

<ul>
    <li ><a href="http://www.example.org" title="Home"><img src="home.png" alt="" /></a></li>
    <li ><a href="http://www.example.com" title="About"><img src="about.png" alt="" /></a></li>
    <li ><a href="http://www.example.in" title="Blog"><img src="blog.png" alt="" /></a></li>
</ul>

Thanks in advance.

Upvotes: 0

Views: 69

Answers (2)

Zameer Khan
Zameer Khan

Reputation: 1196

Have a look at this plugin. I believe this is exactly that you need.

Also, Arun's suggestion is very helpful.

Upvotes: 0

arun
arun

Reputation: 4813

  1. Add a extra css class and in that class name write ur image code.
  2. U can add that extra css class here Appearance->menus : there u find CSS Classes (optional)
  3. If u didn't find it then, click screen option in the top right hand corner (near help), there u can enable css classes, description, etc.,

Upvotes: 4

Related Questions