Post css not loading in archive page
-
Hello,
I’m working in local environment.
WP 5.9.2 / GeneratePress 3.1.3 / Generate Blocks 7.2.0
I’m using a child theme.I created posts in category named “portfolio”.
I added specfic archive files for this category in order to display only post content of each post in the archive page of category “portfolio”.
Other archive pages (as blog) are displaying posts as configured in customizer using standard GP files (featured image + title + excerpt + terms…).Here are 2 screenshots :
1) What I have done https://ibb.co/vJYdxbR
2) What I want https://ibb.co/vVQg4tQDetails
1) This page is archive page of posts category “portfolio” and displays posts from this category
I create following files in child theme :
– file category-portfolio.php (copy of archive.php) where I changed
generate_do_template_part( ‘archive’ );
to get_template_part( ‘content’, ‘portfolio’ );– file content-portfolio.php (copy of content-single.php) where I removed header to display only post content
As you can see in first commented screenshot, the first post is displayed as expected (GB css for this post has been automatically printed in header).
The second post is not displyed has expected (see screenshot 2 to understand what I want). GB css of this post hasn’t be printed in header.2) This is a test page to show you what I’m looking for. I copied the contents from the 2 different posts.
Do you nedd more info ?
Thank you for your help.
Best regards.
Joffrey
The topic ‘Post css not loading in archive page’ is closed to new replies.