search
Log In
Welcome to Blogiestools Ask, a blogging community where beginner and professional bloggers come to seek answers from other bloggers’ experiences.

You can ask questions related to starting a blog, monetizing a blog, marketing a blog, managing a blog, fixing a problem, the best web tech tools to use, etc.

Register or log in to ask questions or edit comments.
0 votes
I have several posts on my WordPress site but I want to add CSS to a specific post, how do I do
in WordPress Problems

1 Answer

0 votes

To add custom CSS to a specific post in WordPress post follow the steps below:  

  • Open the post  
  • Then open the browser inspection tool
  • Go to the top of the HTML section and look for body tag <body...
  • check for the postid-11111 (11111 represent your post id number)

 For example: <body class="post-template-default single single-post postid-11111 ingle-format-standard wp-custom-logo ....

  • Make sure your custom CSS begins with postid-11111

For example, the custom CSS below will change the background color of paragraphs of only postid-11111 to red. 


.postid-11111  p {background-color: red;} 

15.3k points

Related

0 votes
1 answer
I am looking for ways to disable lazy load in a specific image in visual composer
posted Nov 4, 2021 in WordPress Problems anonymous
0 votes
1 answer
I have created a privacy page but I do not know how to add it in the footer section of my WordPress powered blog
posted Nov 3, 2021 in WordPress Problems anonymous
0 votes
1 answer
I want to run a custom Php script in WordPress posts and pages. Is it possible to do so without using the functions.php file?
posted Nov 4, 2021 in WordPress Problems anonymous
1 vote
1 answer
How do I add expires HTTP headers to my WordPress blog without using a plugin
posted Nov 10, 2021 in Blog Optimization anonymous
0 votes
1 answer
I need a code to change WooCommerce add cart button text without installing a plugin
posted Nov 8, 2021 in WordPress Problems anonymous