Site logo

Archived topic

Remove titles and subtitles in single posts

9 replies · Started by Martin on November 19, 2017

Viewing posts 1–10 of 10

How can I remove titles and subtitles in single post?
Concrete: How to remove the 2 "Franziska Baumgartner" in http://franziska-baumgartner.ch/cantonale-berne-jura/
Any GP Premium switches to do that? Or do I need some CSS code?
Thanks for any help.
Martin

Hi Leo

Thanks - but doesn't work?!
Here is what I have till now in simple custom css:
/* Disable Header of Blog Page */
.blog .site-header,
.archive .site-header {
display: none;
}
/* Disable Footer of Blog Page */
.blog .site-footer,
.archive .site-footer {
display: none;
}
/* Disable Header of Single Post */
.single .entry-header {
display: none;
}

Disable Header and Footer of Blog page: ok
Disable Header of single post: not ok

Any modifications?

Thanks
Martin

Ahh you are talking about the site title and tag line.

Try this instead:

.single .site-header {
    display: none;
}

Sorry for my wording. Site title and tag line is what I want to remove when looking at single posts, you are right :)

But: Site title and tag line still there with your second css proposal.
Any idea what'ss going wrong?

Regards
Martin

Current custom CSS:

/* Disable Site Title of Blog Page */
.blog .site-header,
.archive .site-header {
display: none;
}
/* Disable Site Footer of Blog Page */
.blog .site-footer,
.archive .site-footer {
display: none;
.single .site-header {
display: none;
}

You missed a closing bracket in:

.blog .site-footer,
.archive .site-footer {
display: none;
.single .site-header {
display: none;
}

Try:

.blog .site-footer,
.archive .site-footer,
.single .site-header {
    display: none;
}

Hi Leo

Thank you for checking the syntax of my little little piece of code. How embarrassing!

However - everything is ok now.
Site title and tag line disappear when CSS is coded correctly :)

Thanks a lot for your immediate and fast support.

Best regards
Martin

This is now my custom css, as it should be:

/* Disable Site title and tag line of blog page */
.blog .site-header,
.archive .site-header {
display: none;
}
/* Disable site footer of blog page */
.blog .site-footer,
.archive .site-footer {
display: none;
}
/* Disable site title and tag line of single posts */
.single .site-header {
display: none;
}

No problem!

This archived topic is closed to new replies.