Reputation: 193
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
}
Upvotes: 4
Views: 13468
Reputation: 1205
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/
Upvotes: -2
Reputation: 14596
Open up the inspector in your browser and navigate to the <body>
tag and you will see something like this:
<body class="... postid-123 ...">
or
<body class="... page-id-123 ...">
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
Upvotes: 5