If it’s in a menu you could use .current-menu-parent otherwise something like .current-post-parent or .current-page-parent
I hope this is what you mean. Otherwise a link to your current site would help alot.
Related Posts:
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- Menu Custom Data Attributes
- How to modify mobile nav menu text in theme
- Adding first / last CSS classes to menus
- Mega Menu Walker
- WordPress Admin Bar pushed Sticky Footer off the bottom of the page
- Displaying Logged-In User Name in WordPress Menu
- How to target with css, admin elements according to user role level?
- How can I limit the length of the previous/next posts in my WordPress Theme?
- the_author_posts_link css class
- WordPress Shortcode and Dynamic CSS
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- “wp_enqueue_style();” don’t load new edited style
- Best way of adding CSS which can be manipulated by the user via theme option panels?
- Need help on WordPress and php
- Multiple pages on one with different HTML
- functions.php not adding css to website?
- wp enqueue style and style sheet depth
- WordPress Customizer not setting default value upon initial install?
- Theme Customizer – Dynamic CSS PHP File
- CSS saved & enqueued, but wordpress doesn’t load css text, only file
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- WordPress loop specific thumbnail size
- WordPress doesn’t include css
- Understanding child theme functions.php
- wp_enqueue_style with style.php and WordPress functions
- Is it possible to use the featured image of a page as a css background without inlining?
- Logout and redirect using the WP Menu
- if file_exists not working with wp_enqueue_style
- Want to create Child theme, but already edited Parent theme css files and some php files
- Minify HTML, CSS, JS with PHPWee?
- Second Navigation inside header
- Using PHP to toggle stylesheet and header image, set in cookie
- Archive dropdown styling not applied
- How to display a value from a radio button in the options menu in wordpress
- How should I best target dynamically served content?
- Different background-image by category
- Style every second widget?
- How to scale image with equal width and height without distortion?
- How can I add a custom class to only nav sub-menu > li > a items in WordPress?
- items_wrap not working
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- Style wp_page_menu() items
- php syntax – how to concatenate properly – echo bloginfo(‘stylesheet_directory)
- wp nav menu: add attributes to menu items [duplicate]
- WordPress override bloginfo variable
- Put CSS inside a PHP file and include it the right way
- Shortcode content output but not in correct place
- An unwanted inline style is added to my body tag
- Displaying theme options in css
- Show post in slider
- Problem adding class to body_class
- Add a custom stylesheet for BlackBerry
- How can I hide Home in my menu in a specific page?
- Missing sidebar parameter “fix” – before_content
- Get different images for mobile and desktop with php, advanced custom fields without using js and ajax
- How Display Posts on category
- Change Navigation Bar based on logged in or not
- How to stop featured image thumbnail [set as background image] on blog index page just repeating same image across all posts
- Slider loading issue
- Multiple WordPress Menus that will only display all pages
- Plugin CSS not enqueing
- Parent theme CSS overriding child CSS rules
- how to remove metadata from the posts of my blog?
- How to style options page in dashboard?
- Theme Options Page – User Updates Logo
- How to use my style.css file outside of wordpress subdomain?
- Dynamic Stylesheet loads but doesn’t finish
- How to add date to navigation bar
- Menu Limitations
- Reordering Buddy Press profile navigation [closed]
- Selectbox in admin panel function linking to CSS
- Can I install/embed WordPress on a ‘single page’?
- Using if/else statements with output from theme options
- Is there CSS to expand the gallery limit on Index Pages?
- How to remove role=”navigation” from all nav elements?
- How to design a table based on css values set from admin/dashboard
- How to show all pages in blog navigation?
- Custom Walker_Nav_Menu issue with variables on PHP 7.3
- Incorrect MIME type for assets with Valet
- How to display pictures from database?
- How to add condition in wordpress loop? [closed]
- Customize position of social icons in upme plugin [closed]
- Help with Sub and Sub-Sub Navigation
- Best way to schedule daily change in CSS parameter
- Css loads very slow [closed]
- Gravity form built in Captcha
- How does wp_enqueue_scripts work?
- Different post styles depending on category
- How create a Shortcode with hover and complex options
- WordPress Multiple Navigation bars
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- two columns of posts on homepage, one of them “favorites”
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- Whats the proper way to use a php stylesheet in a wordpress theme? [duplicate]
- custom css for admin only
- responsive.css in the WordPress should be prioritized
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Which is the correct way to conditionally enqueue a CSS file?
- Custom Background by Page IDs