Forums

How can i find out on which page i am when genarating the sidebar ? (6 posts)

  1. 1stpixel
    Member
    Posted 4 years ago #

    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.

  2. dawg
    Member
    Posted 4 years ago #

    should be your index page or where you have included

    {<?php get_sidebar(); ?>}

  3. 1stpixel
    Member
    Posted 4 years ago #

    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.

  4. mdawaffe
    Member
    Posted 4 years ago #

  5. 1stpixel
    Member
    Posted 4 years ago #

    What part of that page do you refer to ?

  6. mdawaffe
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.