Site logo

Archived topic

Custom post type not loading CSS

2 replies · Started by Matic on July 6, 2022

Viewing posts 1–3 of 3

Hello,

I am using the provided Child theme for Generatepress and style.css within it to edit my website.

I defined a new custom post template by copying copying the content-single.php and adding the following code to the top of the template:

/**
 * The template for displaying single posts.
 * 
 * Template Name: Full Width Post
 * Template Post Type: post
 *
 * @package GeneratePress
 */

It shows in the template options as expected. So far so good.

However, when using this new template, it doesn't load ANY css, fonts, or JS.

Is there a crucial mistake I'm doing? Do I have to enqueue every script and stylesheet for this post template separately?

Glad you were able to resolve the issue!

This archived topic is closed to new replies.