add CSS id or class for the Home Link?

Forums Forums Menus add CSS id or class for the Home Link?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1352
    cubecolour
    Member

    I’m trying the latest version of the PixoPoint Menu Plugin on a site I am building.

    Is there a way to add an id or class to the menu link for the home page so this link can be targeted?

    As a work-around I have been able to style just home link using:
    [font=courier:3c2xxnac]#pixopoint_menu1 ul li:first-child a {background: url(./img/icons/home.png) no-repeat center center;}
    #pixopoint_menu1 ul ul li:first-child a {background-image: none;}[/font:3c2xxnac]

    However this feels a little kludgy & I think it would be nice if the home element could be targeted with a simple class out of the box.

    currently the home link shows in the source as:
    [font=courier:3c2xxnac]<li><a href="http://localhost/mysite/">home</a></li>%5B/font:3c2xxnac%5D

    It would be very useful if it could instead output something like:
    [font=courier:3c2xxnac]<li class="home"><a href="http://localhost/mysite/">home</a></li>%5B/font:3c2xxnac%5D

    Is this possible maybe for a future version?

    #8291

    Thanks for pointing this out. I’ll add it into the next version. I’m surprised this wasn’t incorporate already, but I guess I just didn’t think of it at the time.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.