How to add css specific to a page in wordpress?

custom css code

Add css custom style specific to a page in wordpress

You can add custom styles to a specific page in wordpress without affecting the whole website.

Go to Appearance-> Customize->Additional CSS

.page-id-1047{
color:#000;

/* add your custom css style code here*/
}

Here 1047 is the page id which you can get from the url when you edit the page:

For example,

…../wp-admin/post.php?post=1047&action=edit

Change page id as per your webpage,  write custom css code and click publish.

Hope this was helpful. Feel free to get in touch in case of any questions here.

Leave a Comment

Your email address will not be published. Required fields are marked *