Inserting Facebook button in Nav Menu
-
Hi all.
Using a Child Theme of Twentyeleven, I’m experiencing a few issues getting my Facebook “Button” (Menu Item) showing in my nav menu. I’ve created the basic CSS but as I’m not very good at CSS, I’ve messed up!
#access .facebook { float: right; } #access .facebook a { background: transparent url ('/uploads/2012/06/FB-Logo-Final.png') 0 0 no-repeat; padding: 0; text-indent: -9999px; width: 42px; } #access .facebook a { background-position: 0 -96px; } #access .facebook a:hover, #access .facebook a:focus, #access .facebook a:active { background: transparent url(uploads/2012/06/FB-Logo-Final.png) 0 0 no-repeat; }
That’s the CSS I’ve used, and in conjunction with that I’ve created the Custom Menu calling the .facebook access in the CSS Classes box when creating the Menu.
Now, the problem is it’s worked! But not exactly. The button exists but doesn’t show my uploaded .png button I made. (Incidentally it’s 42x42px if that makes any difference). So much so, that the item is clickable if you know it’s there.
The page in question is and the Button is just left of the menu.
Can someone please shed light on what’s gone wrong? I’ve checked the URL of my image is correct. Perhaps I’ve not called it correctly in CSS? Any help of course appreciated. Thanks.
- The topic ‘Inserting Facebook button in Nav Menu’ is closed to new replies.