How to make the exception for this code in a post?

Yeye1984

Regular Member
Joined
Jul 19, 2020
Messages
228
Reaction score
38
i have this code in my template:

table tr
{
display: grid !important;
}

but i would like to disable it code for one of my page, what can i do? please help. thank you guys
 
Create new stylesheet for this page and dont put this code !
 
Create new stylesheet for this page and dont put this code !
hey mate, thank you for replying. the code is already installed in the template. now i want to add a code to a post but the table shows up all mess up. please help. how to make this only post table friendly?

the stylesheet for the post doesn't have this code, i think is because the template have it.
 
If I understand right you want that CSS to be applied to all pages except one post?
You can grab post ID (edit the post, save the draft and check URL for the ID), and make a custom CSS for a specific post, like:
Code:
.post-[ID] table tr {
custom CSS here
}
where [ID] is the post ID grabbed from the URL.

Can't help more without link to the site or a specific theme, but my guess that this would work:

Code:
.post-[ID] table tr {
display: grid;
}
just change post ID

Note: you should change just [ID] value, leave "post-".
 
If it WordPress you can edit the css for each page not very hard
 
If I understand right you want that CSS to be applied to all pages except one post?
You can grab post ID (edit the post, save the draft and check URL for the ID), and make a custom CSS for a specific post, like:
Code:
.post-[ID] table tr {
custom CSS here
}
where [ID] is the post ID grabbed from the URL.
thank you i am going to try this now
 
Not really, sorry, I would have to check their doc and how they work now, don't have time to do that atm.
ok, thank you for the time. Anyone can help me with this please?, i am getting ready to start crying
 
ok, thank you for the time. Anyone can help me with this please?, i am getting ready to start crying
Send me the page on PM, it could be some easy CSS fix without getting deep into blogger system.
 
Back
Top