By default, WordPress sets various classes to <body> depending on which page, template, parent, .. you are on. For a single post, some of these are single and single-post, so you could use the following
body.single.single-post .post-meta {
margin-right: 0px !important;
}
Related Posts:
- Customize position of social icons in upme plugin [closed]
- WordPress Shortcode and Dynamic CSS
- Multiple pages on one with different HTML
- Minify HTML, CSS, JS with PHPWee?
- How to display a value from a radio button in the options menu in wordpress
- 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
- How can I hide Home in my menu in a specific page?
- Missing sidebar parameter “fix” – before_content
- How Display Posts on category
- how to remove metadata from the posts of my blog?
- Converting HTML Template to WordPress Theme
- Selectbox in admin panel function linking to CSS
- Can I install/embed WordPress on a ‘single page’?
- How to get the value of input hidden html from text editor to custom page template?
- Different post styles depending on category
- How create a Shortcode with hover and complex options
- WordPress Multiple Navigation bars
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- Custom Background by Page IDs
- Wrapping a Sidebar within
- Add Codepen animation as Preloader to WordPress
- Add data-id attribute to child page links
- Clickable image link sends people to wrong URL
- Where can I find the inline-css of my theme header?
- Menu Custom Data Attributes
- Highlight the links without using dropdown
- Website completely messes up when logging out
- Need help removing […] after excerpt
- Link to page with posts of specific type
- Assign Custom classes to every Excerpt
- Displaying images outside the content
- how to changes mobile menu toggle breakpoint in WordPress
- Create Columns with Custom Walker and CSS Classes
- Background image no longer fits to screen now that project is in php files
- Hide A Class and Add Custom HTML Code Using WordPress
- Add other class content with reference class value
- PHP function for horizontal Woocommerce thumbnails and badges
- I can’t go to the page archive-{post_type}.php
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- Help me I cannot link my font-awesome to my WordPress Theme. I have my font-awesome folder already in my project
- Drop down question
- WP Website is shown in HTML
- Can’t display anything through homepage text editor
- 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 add functions to my function.php using a child theme?
- Make a full-width wordpress page
- custom field – changing an element or background of id div – different versions not working
- Target a specific container to style on WordPress storefront theme
- How to include different html tags in the header for different pages?
- user update profile for custom code
- Multisite – Display different header content based on which site is accessed
- Font-Family does not looks like how it should be [closed]
- Where to find the html for WordPress site? [closed]
- Show contact 7 form in popup
- WordPress – Image href for home menu nav not working
- How Can I Center the Logo in the Navigation Menu? [closed]
- featured post as div background
- Trying to customize wordpress drop down categories
- Cant get theme to change footer color through theme customizer
- Save Option on Database
- HTML in PHP problem [closed]
- How to customize posts in WordPress by using HTML and CSS?
- WP_Query not returning results
- Header location [closed]
- How do I link the side images?
- Parse error: syntax error, unexpected ‘}’ in
- Sorting Problem
- How to create a container in php then customise it in CSS
- Custom HTML/CSS Theme into WordPress – SEO considerations
- hello can you advise how to fix the error?
- Add multiple HTML attributes to an Elementor button
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- How to create different templates for woocommerce single-product.php?
- Editing stylehseet url in head section of WordPress
- How can we upload custom page files?
- PHP Include Nav-bar For Every Page Techniques?
- WordPress and event-driven programming – what is it about?
- Limit the Excerpt field in WP-Admin in words
- Random Default Avatar Function
- proper way to add css using functions.php?
- How to make container class in PHP
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- Where is the PHP code generating an element?
- Prevent redirect to wp-login.php
- Find out last 7 days of upload images, last week uploaded image from Gallery and display them in different pages
- Trying to update Woocommerce meta values
- How to hide a div section when user is logged in, in single product woocommerce
- Create “blank” admin page without having admin-bar/admin-menu for faster load
- Fix hover images blink
- Blog Image and Title in Right Sidebar
- Widget header unique classes
- How to enqueue structured data as file – jsonld file seems not to work
- Slick slider not working on wordpress
- Capture the Selected Radio Button Value between two files in wordpress theme
- Hide or Show Read More Button by Content Area