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?
- the_author_posts_link css class
- Setting up the child theme so as to enable right-to-left WordPress?
- How to use a frontend URL with a Plugin
- How to display blog images using wordpress in existing project
- php syntax – how to concatenate properly – echo bloginfo(‘stylesheet_directory)
- Multiple choice in a custom taxonomy
- WP dynamic featured image – Can’t get second featured image url
- Why the JavaScript code is ignored from wp editor?
- Send an email to specific adress when button is clicked?
- Why Won’t My Inputs in a form with a Get method work together?
- Whats the proper way to use a php stylesheet in a wordpress theme? [duplicate]
- Thumbnails appear to be zoomed
- “operation successful” message
- WordPress archive page showing 404 Error [duplicate]
- Removing WordPress Footer -without access to PHP code?
- Post repeated when opening in overlay, how do I solve this? [closed]
- Inserting a class on before_widget if checkbox is checked
- How to identify which php file a plugin is using on page load?
- How to Protect a private folder inside uploads folder, if User is not Logged In?
- How to make a parent page for author.php?
- How can I customize a WordPress theme before it’s downloaded?
- How limit the width of a fixed menu-bar on scroll?