Want to target a banner on only one page
-
Goodmorning,
I have a question. I would like to target a specific banner/featured image on only one page.
If I check the developer tool, then there is no page-id in the body-tag
<body class="page admin-bar content-sidebar singular customize-support">
So I went to the dashboard and find out the page id into the url of the specific page, into the pages section
localhost/wp-admin/post.php?post=12&action=edit
So then I used page-id-12 to target the banner on the specific page:
.page-id-12 .banner {
height: 10rem;
}
But this is not working, what am I doing wrong?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Want to target a banner on only one page’ is closed to new replies.