search
Log In
Welcome to BlogiesTools Ask, a platform where beginners and professional bloggers come to seek answers from other bloggers’ experiences.

You can register and login to ask or answer a question or do it anonymously without logging in.

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

Ask a Question

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.0k points

Related questions

0 votes
1 answer
I am looking for ways to disable lazy load in a specific image in visual composer
asked 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
asked 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?
asked 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
asked 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
asked Nov 8, 2021 in WordPress Problems anonymous