Hide entry title with an exception page
-
Hello, my site is this http://tnwarder.com/
and what I’m trying to fiddle with is to turn off the entry page on every page (new entry, illustration, etc.)
but the blog page is a little tricky , it hides every post title so I want to hide on the title every page except the blog page.right now I’m using
` .entry-title {
display: hide;
} `
which hide all the page including the blog page.The blog I need help with is: (visible only to logged in users)
-
Hi there. In order to target specific pages, you can make use of the CSS classes that WordPress adds to the body tag. If you view the source of one of the pages, you’ll see the following:
<body class="page page-id-409 page-template page-template-page-full-width-php logged-in admin-bar no-customize-support custom-background typekit-enabled mp6 highlander-enabled highlander-light custom-colors" style="">This means that if you want to target pages, you can use the class “page” in your CSS as follows:
.page .entry-title { display: hide; }You can even get creative, and target specific pages (in this case, the page I viewed has the class “page-id-409”), or pages only while you’re logged in, etc.
-
- The topic ‘Hide entry title with an exception page’ is closed to new replies.