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
- WordPress Admin Bar pushed Sticky Footer off the bottom of the page
- How can I limit the length of the previous/next posts in my WordPress Theme?
- “wp_enqueue_style();” don’t load new edited style
- functions.php not adding css to website?
- 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
- Using PHP to toggle stylesheet and header image, set in cookie
- Archive dropdown styling not applied
- Different background-image by category
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- Missing sidebar parameter “fix” – before_content
- How Display Posts on category
- Slider loading issue
- Parent theme CSS overriding child CSS rules
- How to style options page in dashboard?
- Theme Options Page – User Updates Logo
- Dynamic Stylesheet loads but doesn’t finish
- How to add date to navigation bar
- Can I install/embed WordPress on a ‘single page’?
- Incorrect MIME type for assets with Valet
- Customize position of social icons in upme plugin [closed]
- Css loads very slow [closed]
- 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
- Which is the correct way to conditionally enqueue a CSS file?
- Use PHP in stylesheet to specify a background image based on Category ID
- WordPress wp_add_inline_style unable to give hex colors?
- How to create table in wordpress without plugin? [closed]
- PHP in CSS file?
- Add class to DIV depending on page loaded
- Liking a facebook page from wordpress website?
- trouble with page_id & highlighting current page
- Last class on last headline?
- wordpress admin plugin menu custom css
- How to remove sidebar primary widget on Mobile on category page [closed]
- How to Change CSS Colors from Custom Plugin Settings Page
- Where can I find the inline-css of my theme header?
- Website completely messes up when logging out
- Issue Enqueueing WordPress style.css
- How to add new CSS file to new PHP file
- Applying CSS on PHP variable [closed]
- Nav-Menu not showing up
- Custom navigation menu with awsAccordion
- CSS images don’t show up with bloginfo
- Using theme options to change a border-radius value
- how to changes mobile menu toggle breakpoint in WordPress
- Timber right sidebar in WordPress theme
- Applying css in functions.php
- How to Remove Theme Style CSS inside Custom Plugin?
- Add other class content with reference class value
- oceanwp+woo mobile cart sidebar text
- Adding Custom css file in the wp-uploads directory with custom php functions
- My top header looks different on single pages but is fine on the home page
- Using php code inside style tag
- I want to show cart items number if any or nothing, simple CART text
- How to hide a div section when user is logged in, in single product woocommerce
- How do I integrate vanilla Javascript to a wordpress website?
- Drop down question
- Can’t display anything through homepage text editor
- Cannot dequeue Elementor Font Awesome css
- How to find and delete a menu item in php?
- WordPress Slider is not working
- How to display post meta bellow every posts
- How to let mobile navigation menu close when link is clicked?
- Add Shortcode to ::before class
- Site title not showing. Please help me
- Fix hover images blink
- Hot to edit WooCOmmerce dashboard?
- Blog Image and Title in Right Sidebar
- How to create a sub-page of sub-page?
- Target a specific container to style on WordPress storefront theme
- Displaying POST content with HTML tags and all
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Position a repeated article blocks
- Custom Thumbnails [closed]
- index.php navigation
- Revision History for Entire WordPress Site
- wp add inline style in loop
- WordPress – Image href for home menu nav not working
- Display pages from specific page template
- WP_Nav Highlight Parent Issue
- How do I use CSS or PHP to customize WordPress Form Manager Plugin Table?
- Sidebar doesnt get updated?
- How to NOT override inline css rules
- Add CSS class to PHP Statement
- How to add margin underneath woocommerce total price amount -> productpages
- Load files content [closed]
- Load slideshow.css file only if Slideshow is checked / on
- Predefine Magazine Style Layouts
- It’s not showing full content for posts pages in wordpress “[…]” while customing some changes in the style.css file [closed]
- Add a “Next Post” & “Previous Post” styled button manually to a post
- Parse error: syntax error, unexpected ‘}’ in
- Sorting Problem
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]