Try adding the .current-page-ancestor
selector to your style, note the use of hyphens instead of underscores.
Related Posts:
- Why max-width:97.5% on content images?
- why does twenty eleven theme mix up the css measurement units?
- How to add (css) classes to only one wp_nav_menu()?
- How to highlight the current page in the nav menu?
- CSS won’t style output of wp_nav_menu() correctly
- Where is definied the theme location for the main menu in a WordPress template?
- How to determine which custom header image is being shown
- Some doubts about WordPress handle the horizontal main menu visualization
- Why nav_menu_css_class doesn’t work with apply_filters?
- 3 Level Menu Navigation (3rd Level not displaying)
- How do I middle-align my header menu items in WordPress [closed]
- How to highlight current menu bar base on the URL?
- How to define and link full path to css located at a random folder on header.php
- How to add posts to custom menus?
- How to add custom css file in theme?
- CSS not updating in browser when I change it
- Display Menu Name using wp_nav_menu
- Do I actually need to link my theme’s style.css in the theme files
- CSS classes for theme
- Splitting WordPress theme CSS into multiple files, good or bad?
- How do I check if a menu exists?
- Why to check if function doesn’t exists in functions.php?
- How to use logout function on custom menu link?
- How to display wp_nav_menu() conditionally only when not on a 404 page?
- Suggestions for creative use of post format feature, or themes that use them well
- Add class to before_widget for all widgets with a dropdown and a counter
- Add a preview to a WordPress Control Panel
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- Problem with registering menus – What to do when other solutions aren’t working?
- Add a #hash to the links in my custom menu
- How can i change menu link when page content empty?
- CSS in child theme not overriding the parent theme [closed]
- Displaying wp menus by name without using theme locations
- Adding dashicon fonts to the admin of pre 3.8 installs
- How to keep theme layout the same when admin gray bar is present?
- wp_head() not inserting the default stylesheet style.css
- Writing Clean WooCommerce Styles
- De-registering parent style sheet css recommended?
- Alterntives to BEM syntax that comply with WordPress coding standards? [closed]
- WordPress default theme css units
- How to remove class attributes from custom menu markup?
- enqueue_style is not working
- How to Edit the style of header title of Twenty Eleven Theme?
- Part of Menu Item Hidden on Header Menu
- WordPress navbar with logo in middle [closed]
- Is it possible to edit the styling of the admin panel from within a custom theme?
- WordPress is adding margins and padding to my custom menu?
- Menu item added in wp_nav_menu_items filter is never highlighted
- wp_post->post_parent object returning 0
- multisite: global menu containing network site links?
- Theme Loading Into Dashboard
- How to make theme elements customizable in wordpress?
- What are the Entry classes for?
- Using a page as home, how do I prevent nav from setting both home and page links active?
- How to edit my theme for full width?
- How to check if a WordPress core block is active in sidebar
- Which html elements should be styled in wordpress theme
- How to add styles set by user in the customizer
- Why doesn’t my css work when I check my theme on mobile devices? [closed]
- Following Web Performance Optimization techniques to output static and dynamic css
- Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?
- How can I add custom text styles to the visual text editor?
- Displaying icon image for WordPress post formats, is there a cleaner way to do this?
- Internal Stylesheet in WordPress Theme development
- Admin: sub menu doesnt display under apperance when activate my themes
- How to change footer or for different kinds of users in wordpress?
- How to Create custom xml file for demo content for custom theme?
- Broken theme, template is missing
- How to reverse engineer the Twenty Eleven background image uploader?
- wp_nav_menu and its fallback
- How do I use wp_nav_menu?
- Assign custom classes to the divs inside the loop
- Theme development – Automatically menu creation
- Theme development: How to add CSS classes to menu items?
- Navbar- disable “onClick” drop-down
- How to conditionally add a wp_filter
- Can’t change theme name
- Remove/Hide a Widget on a Custom Template
- header, stylesheet not being read
- Parent/Child pages
- How to substitute old wordpress menu by wp 3 menu the right way?
- Archives and Categories in Custom Menu
- How to create a robust and logic class naming system in WordPress theme developing?
- Theme: dropdown hover menu not showing up in IE/Edge
- Pages not displaying as sections on static page
- Need help with adding custom wordpress menu and sub-menu
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- How to fix an issue with customizer live preview?
- Fallback dosen’t work when not using ‘menu’ attribute
- WordPress doesn’t recognize submenus as so I can’t style them properly
- Primary Menu Showing All Pages With No Sub-Nav
- Custom CSS no getting applied
- WordPress 3.9 two menus in same position?
- editor style css and page template with and without sidebar
- Why the slideshow is not shown in my theme?
- How can I change the title of the Home link in the navigation bar?
- Custom link color or stylesheets
- How to make navigation a list without a plugin? [duplicate]
- What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]
- How to automatically set a Template Page Name next to a page in menu screen such as WooCommerce pages, front page, or posts page in wordpress?