Menus – menu-item vs page-item???
-
I am fairly new to WordPress theming and I’m teaching myself how to do it.
I’ve done a couple custom themes for websites and I have another that will be a lot like one of the others apart from some colors and images. I copied the theme and changed the name and then activated it on the same WP install. The menu styles broke. I started looking at the code and realized for one theme, WP used menu-item classes for the menu…well, items. But, when the other theme is activated (which is virtually identical to the first), it uses page-item classes for the menu items. Why would it switch???
The menu is included in the theme with wp_nav_menu().It also did weird things like unchecking the menu locations for custom menus even though the names of the locations are identical. It disabled and removed widgets from a widget area and replaced it with default widgets. Again, the widget area has the exact same name as the theme I am copying.
Can anyone shed some light on this?
Thanks!
- The topic ‘Menus – menu-item vs page-item???’ is closed to new replies.