[Resolved] Custom post type archive slightly different from standard post type archive

Home Forums Support [Resolved] Custom post type archive slightly different from standard post type archive

Home Forums Support Custom post type archive slightly different from standard post type archive

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1563919
    mkjj

    I’ve created a custom post type. Everything works fine with one exception: The archive page looks slightly different, and the images are larger. I checked the source code and found out that the standard archive page has an additional DIV with a class “generate-columns-container”, which can’t be found in the source code of the custom post type archive. I don’t use a custom archive template. Any ideas where this comes from?

    #1564275
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can use the private information field.

    Let me know 🙂

    #1565091
    mkjj

    Yeah, no problem. This is the standard blog page:

    https://walterluebeck.com/blog/

    This is the custom post type archive page, that is still in development. The images have the same size like the standard post images (500x334px):

    https://walterluebeck.com/videos/

    The images appear larger. The reason is that a DIV having a left margin is missing. I could change the template, but I would like to know why this happens.

    Thank you.

    #1566044
    David
    Staff
    Customer Support

    Hi there,

    you’re using CSS to create your CPT archive layout.
    Instead you should be able to enable GP Columns for your CPT. See here:

    https://docs.generatepress.com/article/using-columns-in-the-blog/#adding-columns-to-your-custom-post-type

    #1566056
    mkjj

    Excellent, David! Thank you. There’s really a lot to learn about Generatepress. And I’m really impressed by the great features that the theme provides. Extremely powerful and yet lightweight. Fantastic work!

    Mike

    #1566073
    David
    Staff
    Customer Support

    Glad we could be of help! And thanks for the great feedback.

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