It is not highlighted which means code is not currently being applied. What you see is post ID. You can use that too to target specific posts :. You actually have two groups of CSS rules there, one for and another for However, both groups has. Therefore, this has nothing to do with page-id mix up. As you can see, it gets confusing very quickly. Thanks for chiming in! On all pages, I do want H2 to have a 40px margin-bottom, but not on page-id If not, what should the CSS read?
You will see additional meta box below text input area on posts and pages screen. You may add whatever CSS you want. This plugin requires at least WordPress 5. Automatic installation is the easiest.
One of our members was creating a landing page in WordPress and needed to hide some elements of his theme. However, those elements couldn't be hidden from the theme or widget settings. In this post, I'm going to show you how to hide elements on certain pages of your WordPress site. If possible, find an id, although a class may work too. In my example, the selector that wraps the menu is mainmenu. In this context, a unique class is exclusive to this URL, which means that it doesn't exist on other pages. Merge the selectors from step 1 and 2 to build a final selector. The class from body comes first, following this pattern:. The element will not be displayed in the URL that prints the unique class from step 2.
Change the value until satisfied the preferred background colour value in this case would be ffffff. Next we need to find the unique id of the page you want to target. Paste the new code with the page id either in your custom css theme options if available , or in your styles. Great article. Am I missing some extra code somewhere else? For thoses which are working I use the following code before the rule: article post