Forums

Custom menu CSS class stripping (5 posts)

  1. moose123
    Member
    Posted 9 months ago #

    Hi,

    Running 3.2 multisite. One site is using custom menus. When I try to add a custom class to a menu item, it's stripping out the CSS meta characters, so this...

    #menu-item-1256 {background url:(image.gif);}

    ...becomes:

    menu-item-1256 backgroundurlimagegif

    I appreciate any suggestions.

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 9 months ago #

    are you putting that css into the menu class area?

    That would definitely not work

    You put the class in there.... if you wanted that item to be

    <li class="cheesecake">

    you would put cheesecake in the class, to output that in the source

    The css rules you have above go in style.css

  3. moose123
    Member
    Posted 9 months ago #

    Ohhhhhhhhhhhh....duhhhhhh.

    Ok, I get it now. Yes, I was putting the CSS code into the class field. Ok, this makes sense now. I'll add the style to the CSS and just put the class name in the input field.

    Thanks a ton for cluing me in.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 9 months ago #

    You got it!!

  5. ttj90
    Member
    Posted 2 months ago #

    May I ask what you did, I can't quite grasp it myself.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.