Finally i fixed my old problem. I’m new with WordPress and try to create my own WordPress Theme. When i create my first WordPress Theme, I couldn’t create background on menu bar when user click ABOUT or CONTACT button, but now it’s done already. The problem is i don’t define page_item and current_page_item class on my css, i was define page_loaded class only, where it used by is_home function.
The conclusion is :
When you decide to create different background or border
in each menu, define a class (with background) that will use for
is_page function,then define page_item class (without background),
and the end is define current_page_item (with background).
see the sample below :
Share This
4 Responses
4 Responses