[Resolved] Remove post title from the archive page

Home Forums Support [Resolved] Remove post title from the archive page

Home Forums Support Remove post title from the archive page

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #901215
    Hasan

    I am trying to display the archive pages as an image gallery, so need to show only the featured images for each posts, and remove everything else. I was able to disable everything from the archive pages using the customizer, but can’t get rid of the post title.

    Please let know how to remove post title from the archive pages.

    Thanks!

    #901298
    David
    Staff
    Customer Support

    Hi there,

    if you want to remove the markup for it then it would require a child theme, Tom explains here:

    https://generatepress.com/forums/topic/hide-content-title/#post-786670

    The alternative is to use CSS:

    .generate-columns-container .entry-header {
        display: none;
    }
    
    .generate-columns-container .inside-article {
        padding-bottom: 0;
    }
    
    .generate-columns-container .post-image img {
        vertical-align: middle;
    }
    #916153
    Hasan

    Is it possible to remove the post title on the archive pages without copying the content.php to the child theme and modifying the file? I do not want to do that because in future if the actual file changes, I’ll have an outdated file on the child theme. Don’t want to use the CSS to hide the title either because of SEO issue.

    It would be so nice to have an option in the disable element to turn off the title and metadata on the archive pages and remove the bottom padding, which will enable GP to use as a nice photography theme without doing any customization. Where can I request this feature?

    Best regards,
    Hasan

    #916371
    Tom
    Lead Developer
    Lead Developer

    As of right now it’s not possible without a child theme, but I agree it would be a useful feature. I’ll see what I can do πŸ™‚

    #917012
    Hasan

    Thanks Tom! Looking forward to see this feature on the next release, since this is a small feature to integrate.

    #917092
    Tom
    Lead Developer
    Lead Developer

    No problem πŸ™‚

    #1236104
    rune@wecoplay.com

    I would also like that option.

    #1492258
    Hasan

    Hi Tom,

    Is it possible to do this with the latest version of GP?

    Thanks!

    #1492312
    Tom
    Lead Developer
    Lead Developer

    Yes! The content title option in Disable Elements now applies to archives as well, so you can create a Layout Element to disable it: https://docs.generatepress.com/article/layout-element-overview/

    #1514365
    Hasan

    Awesome! Thanks for listening!! πŸ™‚

    #1514974
    Tom
    Lead Developer
    Lead Developer

    No problem! Glad it’s useful πŸ™‚

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