Jump to content
Sign in to follow this  
josh1178

How to create home icon image without text

Recommended Posts

josh1178

I'd like to make a home icon like in iBlog Pro,with no text. I followed the instructions at the end of the post listed below to setup a home icon image, but I can't figure out how to remove the text that says 'home'. Right now I have an image and the word 'home'. If I delete the label in the wordpress custom menu, it deletes the home nav entirely, which isn't what I'd like to do. http://www.pagelines.com/forum/topic/7225 Thanks!

Share this post


Link to post
Share on other sites
josh1178

Hi Catrina, thanks for helping. The site is only local now, so I can't show you. Here is the code I'm using, which results in an icon and the 'home' text being displayed. I need to remove the 'home' text. Thanks

/* @ NAV BAR HOME ICON @*/
	#primary-nav li.menu-item-8712 a{background: url("/wp-content/images/home.png") no-repeat scroll left center transparent; padding-left: 46px;}
	

Share this post


Link to post
Share on other sites
kastelic

Try replacing "home" with "` `"

Share this post


Link to post
Share on other sites
timlinson

it should work if you add `color:transparent` to that element: `#primary-nav li.menu-item-8712 a{background: url("/wp-content/images/home.png") no-repeat scroll left center transparent; padding-left: 46px; color: transparent;}`

Share this post


Link to post
Share on other sites
josh1178
 

doesn't work. It just get's converted to   as text. Transparent seems to work though Tim, thanks! Will that work across all browsers?

Share this post


Link to post
Share on other sites
kastelic

You forgot the

;

, it will work.

Share this post


Link to post
Share on other sites
josh1178

Doh! That works too. Thanks :) I'm assuming that's safer universally than adding css for transparent?

Share this post


Link to post
Share on other sites
kastelic

I'm inclined to think that

color:transparent

is a better solution, since the text will still be there for accessibility reasons.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×