I'd like to display some CSS only for this page.
In the theme's header.php, I have tried both:
<?php if(is_page('events')) { ?>
<style>
#main {
background-image: none;
}
</style>
<?php } ?>
and
<?php if(is_page(43)) { ?>
<style>
#main {
background-image: none;
}
</style>
<?php } ?>
but these have not succeeded.
I am assuming the slug is "events", and I know the page ID is 43.
Why are these both failing?
Thanks.
body_class()
output to style the background.body_class()
.