How can i Use image in menu in wordpress? -


my whole website made in wordpress. menu's in text links. want highlight 1 of them using image link instead of text link. how do in wordpress?

each menu item has unique css id, in following example:

<li id="menu-item-765"><a href="http://menu.item/url/">some menu item</a></li> 

create menu , @ page source find menu id's. can set background image menu item , hide text using css. using above example:

  li#menu-item-765 {    display: block;    background-image:url('http://url.to/yourbackgroundimage.jpg');    background-repeat: no-repeat;    width: 100px;    height: 50px;    text-indent: -9000px; } 

set width , height properties size of image. text-indent property hides menu link text off screen, , background-image property displays image instead.

repeat each menu item.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -