[Resolved] Hide content images only in homepage

Home Forums Support [Resolved] Hide content images only in homepage

Home Forums Support Hide content images only in homepage

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #168516
    Ramesh Srinivasan

    For some posts, I start with something like this:

    <p><img class="alignright" src="http://www.sampleweb.com/something.jpg" alt="sampleimage" />Content starts....Some paragraph</p>

    Is there a way to hide the image in the homepage?

    #168538
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You can set your blog to show the excerpt by going into “Customize > Blog > Blog Content”.

    By setting the excerpt it will strip the image.

    If this doesn’t work for you try this CSS:

    .blog .entry-content img,
    .archive .entry-content img {
         display: none;
    }

    Adding CSS:https://generatepress.com/knowledgebase/adding-css/

    #168542
    Ramesh Srinivasan

    Used the CSS, and works fine. Just what i needed ๐Ÿ™‚

    #168543
    Tom
    Lead Developer
    Lead Developer

    Awesome! Glad it worked ๐Ÿ™‚

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