Image instead of text in menu
I’ve seen it somewhere before, but I can’t find it again.. I’ve looked for hours now..
I know it’s possible, but how can you call pages and categories with images instead of text..?
So if a page/subpage or category/subcatogory is called “info” instead of text saying “info” use display called “img/info.jpg”
You can do it with posts and pages using a custom field which is entered underneath the post when it is written.
but it has nothing to do with each page..?
I’ve seen a code that uses wp_list_pages or wp_list_cats that do this, but I don’t find it anywhere..
Below each page or post there is a custom field section. You can add a name for a custom field and then in the location box put the location url of the image you want to pull.
Then instead of calling the page title etc. call that custom field instead and it will show the image not the page name/title.
what do I write to call a custom field called “button”, with links to the pages?
and is it possible to do that with category-names also?
Do not replace you text links with an image.
The search engines will not spider the links. Just remember the search engine spyder can not see an image or read what the image says, they can only read text so they will not know that this is a link.
robertstennett: I know that.. I want to know a way to display the images and “hide” the text, but not for search engines
(and anyway, I can always use meta-data to help the search engines).
If it is a better solution, I would like to add IDs to each page-list-item/cat-list-item ;O
Doing this is bad theme design in my opinion, in the end it can easily meant he difference between pr1 and pr4.
You have a couple of options if you really want to do it:
1) make the text the same color as the button
2) make the text so tiny no one will see it
3) Hand code every link and image you want to do it for
Isn’t it possible to add a display:none to the text-links, I guess they’ll display in the code and the search engines anyway. css-zengarden is a great example..
So if I could wrap the text-links inside a specified class and every list-items in an unique id it would be exactly what i want (:
- The topic ‘Image instead of text in menu’ is closed to new replies.