• Resolved axelskye

    (@axelskye)


    I’m trying to setup web stories on a site and it doesn’t work the the site’s custom theme. Checking a little bit it seems CSS and JS files are not being loaded at all, I don’t know why, have checked wverywhere but I don’t find why they are not being loaded.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    It’s not allowed to add custom CSS or JavaScript to a single story on the frontend, otherwise they make your story ineligible to appear on places like the Visual Stories carousel on Google Search. So those are missing from single story views for a good reason.

    Thread Starter axelskye

    (@axelskye)

    No, you didn’t understand me, I’m not trying to add custom code. The CSS and JS of the plugin itself is what isn’t being loaded if I use the custom theme, so the stories don’t look good or even work. You can check it on staging3.platerio.com.

    If I change theme to Twenty Twenty One stories work well.

    Plugin Author Pascal Birchler

    (@swissspidy)

    Thanks for clarification.

    I do now see that you’ve added a Web Stories list block at https://staging3.platerio.com/.

    Like many other blocks, the Web Stories block simply enqueues some styles and scripts, which WordPress then tries to load in the footer. The plugin doesn’t do anything out of the ordinary there.

    I’d suggest verifying that your theme uses the wp_footer() function properly. Perhaps the official Theme Check plugin flags some potential issues as well.

    Thread Starter axelskye

    (@axelskye)

    Okay, thank, I’ll check and tell you if I find the problem and the solution, in case it could ve useful for someone else, thank you!

    @axelskye Sounds good! I’ll mark this topic as resolved for now, but feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Web stories resources not loading with custom theme’ is closed to new replies.