I wanna change my CSS for a specific page, and I can not get the ID of that page.
I wonder how I can change my CSS for a specific page when I don’t have a ID of that page?
This is the ID of my page: forum=forum-framtidsjouren
If I change the code below I’m changing other pages too…
.home #content, .single #content, .page #content
{
background: none repeat scroll 0 0 transparent;
box-shadow: none;
width: 100% !important; // I want to change width to 100% !important
}
Open up the inspector in your browser and navigate to the
<body>
tag and you will see something like this:See the documentation of the
body_class()
function in WordPress, which is responsible for generating these classes:http://codex.wordpress.org/Function_Reference/body_class
You could also use a plugin which allows you to load specific css files for some specific pages.
This one for instance: https://wordpress.org/plugins/this-page-needs-files/