Archived topic
Custom post type archive slightly different from standard post type archive
5 replies · Started by mkjj on December 2, 2020
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?
Hi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
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.
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:
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
Glad we could be of help! And thanks for the great feedback.