Community Forums › Forums › Archived Forums › Design Tips and Tricks › Menu – Highlight Image Not Working
Tagged: menu, navigation
- This topic has 11 replies, 2 voices, and was last updated 11 years, 9 months ago by rbrown08.
-
AuthorPosts
-
January 7, 2013 at 12:22 pm #10147rbrown08Member
I"m using the Crystal Child theme, which I've made quite a few CSS changes to. For my menu, I am using a different background image and a different menu highlight image for the active page. I uploaded the new images to my server and they are named the same as the child theme's, so I didn't have to change anything in the CSS. For some reason the background image works, but the highlight image does not. I can't figure out why, does anyone have any idea?
This is the site with the menu bar as it should look: lanadil.com
This is the dev site where I'm converting it to wordpress: lanadil.evibedesigns.com
January 7, 2013 at 11:29 pm #10287rbrown08MemberJanuary 7, 2013 at 11:42 pm #10292wpsmithMemberYou want to style for the class
.menu.menu-primary .current_page_item
.
January 8, 2013 at 12:00 am #10293rbrown08MemberJanuary 8, 2013 at 11:38 am #10394wpsmithMemberJanuary 8, 2013 at 5:46 pm #10502rbrown08MemberI'm not familiar with pastebin.com, but I just created an account. Now what do I do, lol? Create a paste and then what, provide a link to my paste here?
January 8, 2013 at 5:51 pm #10507rbrown08MemberLet me know if this works: http://pastebin.com/uS49WvGH
I've edited the Crystal child theme, and I don't think I changed anything in the css except change the background and highlight images. The code you gave me is in there at the top, maybe it's fighting against other code.
Thanks for looking at it for me.
January 8, 2013 at 6:35 pm #10531wpsmithMemberI cannot see your site any more since you have it redirecting to the admin, or are requiring people to log in. Move the code to the bottom of that section and replace .menu.menu-primary with #nav I believe.
January 8, 2013 at 8:26 pm #10564rbrown08MemberOops, I deactivated all of the plugins and forgot to leave that one off when I reactivated them.
I did try changing to #nav and moved the code to the bottom of that section in the css, but still nothing.
January 9, 2013 at 2:47 pm #10780rbrown08MemberIn Firebug, the 'menu_highlight.gif' fails to load. Yet, I have double checked on my server and the file is there and I have the correct url. The permissions are set to readable also. I've even tried to upload it again to see if that changes anything, but it did nothing. All other images seem to load. I'm stumped.
January 9, 2013 at 3:25 pm #10803wpsmithMemberHave you placed an image called menu_highlight.png in your child theme images folder (that's what your CSS is calling)? If you made a *.gif, then it probably won't work calling a *.png.
January 9, 2013 at 3:33 pm #10806rbrown08MemberI just figured it out. There was a space in the file name just before the .gif and .png. It's working now, yay!! Thanks for helping me out 🙂
-
AuthorPosts
- The topic ‘Menu – Highlight Image Not Working’ is closed to new replies.