I have a standard menu on my site where only (stytic) pages are linked. The news are only on the startpage. So if so. clicks on a static page, i want to put a class in the corresponding menu item, so i can specially 'draw' this item.
I have a standard menu on my site where only (stytic) pages are linked. The news are only on the startpage. So if so. clicks on a static page, i want to put a class in the corresponding menu item, so i can specially 'draw' this item.
should be your index page or where you have included
{<?php get_sidebar(); ?>}
maybe i have to make this clearer:
I just want to insert a special class Attribute to my pages List, so i can visually seperate (via css) where a user is.
See CSS section on
http://codex.wordpress.org/Template_Tags/wp_list_pages
What part of that page do you refer to ?
The "CSS Styles" section.
Using this Template Tag, a list of your Pages is created. When viewing a particular Page, WordPress gives that Page's link within the list an extra CSS class.
This topic has been closed to new replies.