Hide header post excerpt

Home Forums Reykjavik Hide header post excerpt

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20012

    wuesl
    Participant

    Hide header post excerpt

    Resolved

    Hey there! Have you noticed this support service is provided FREE of charge?
    If you like the speed and accuracy of resolutions, please consider supporting me with a small donation. Thank you

    Consider a donation →

    Hello

    Is there a simple CSS solution to hide only the post header excerpts?

    Thanx
    Ulrich

    #20014

    Oliver Juhas
    Keymaster

    Hi Ulrich,

    What do you mean? Simply do not set the post excerpt :)

    If you want to set the excerpt for posts list and not to display the excerpt on single post pages, please use this custom CSS:

    .single-post .intro .page-summary {
    	display: none;
    }

    Please use your browser code inspector to determine the CSS code you need to use for your theme modifications.

    Best regards,

    Oliver Juhas
    WebMan Design

    #20017

    wuesl
    Participant

    Hi Oliver,

    Thanx a lot. I works fine.

    I tried to check it out with the browser tool but I didn’t see the class .single-post.

    Now I know.

    greetings
    Ulrich

    #20019

    Oliver Juhas
    Keymaster

    Hi Ulrich,

    The .single-post class comes from HTML body tag and I’ve added that to the code specifically for your usecase. WordPress adds many helpful classes to HTML body tag automatically so you can use them.

    Best regards,

    Oliver Juhas
    WebMan Design

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.