• phaidonas

    (@phaidonas)


    Hello, does anyone know where page-item-id is declared?because i want to create a general style in nav-menu and not an individual page_item.I have created a blank theme with underscores.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Jack

    (@jdabber)

    The page id is always in the class of the <body> tag. You can use that class name to narrow your styles to only a specific page.

    Or are you asking where the php generates it?

    Thread Starter phaidonas

    (@phaidonas)

    i am asking where the php generates it, so to make a default style as is generated.

    • This reply was modified 8 years ago by phaidonas.
    Moderator bcworkz

    (@bcworkz)

    It is in the get_body_class() function. But this would not be where to change it. Never alter core code. To alter body classes used, use the ‘body_class‘ filter applied at the end of the same function.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘page-item-id’ is closed to new replies.