in wordpress, how do I know what page is current?
I have 5 pages that are my header menu bar, I want to CSS the current (open page) so user knows whats page they are on. Is there a way of doing this?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should be able to use the is_page() function. You can use the page id, name or slug as an argument.
Examples: