[Resolved] Remove titles and subtitles in single posts

Home Forums Support [Resolved] Remove titles and subtitles in single posts

Home Forums Support Remove titles and subtitles in single posts

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #427990
    Martin

    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

    #428081
    Leo
    Staff
    Customer Support

    Hi there,

    I’m not seeing 2 of them?

    You can remove the title in single post by using this CSS:

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

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #428837
    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

    #428897
    Leo
    Staff
    Customer Support

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

    Try this instead:

    .single .site-header {
        display: none;
    }
    #429186
    Martin

    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

    #429189
    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;
    }

    #429273
    Leo
    Staff
    Customer Support

    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;
    }
    #433505
    Martin

    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

    #433508
    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;
    }

    #433691
    Leo
    Staff
    Customer Support

    No problem!

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.