WordPress.org

Support

Support » Themes and Templates » inserting img into dynamic menu item

inserting img into dynamic menu item

  • Hi,

    I have a navigation menu of five items. The one in the middle has to hold an image that extends a bit outside of the menu item (5px more or less). I do not want to use a background image.

    Anyone has idea’s how to do so? I guess some kind of javascript?

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Why do you not want to use a background image?

    Because the image has to stick out of the menu item.

    So can you expand the height/width of that one navigation menu item?
    Can you link the page in question and the image you want?

    It’s difficult for an outsider to understand the issues you have probably identified.

    joep.twistedwed.nl/fivestarsleep

    The home button had a logo which overlapped the bevel that sticks out. Maybe I’ll just make the logo not stick out of the item, makes the logo a bit smaller though it saves allot of hassle haha.

    I used a background image instead now that doesn’t stick out. But how to get a certain menu item to not display the text? I need the HOME text to get to display: none.

    Anyone?

    Can you link the page in question and the image you want?

    oops the previous link wasn’t correct!
    This one is:

    fivestarsleep

    you are doing good but

    .logo a {
    z-index: 999;
    background: url("img/logo.png") center 12px no-repeat;
    background-size: 90px auto;
    color: transparant;
    }

    color:trasparant spelling mistake
    use
    color:transparent!important;

    With !important it still has no effect. 🙁

    Damnit haha, made a spelling mistake aswell xd Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘inserting img into dynamic menu item’ is closed to new replies.