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.
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
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.
May I ask what you did, I can't quite grasp it myself.