# Shortcodes breaking inside page templates

**URL:** https://discourse.roots.io/t/shortcodes-breaking-inside-page-templates/30390
**Category:** sage
**Created:** 2026-06-29T12:15:48Z
**Posts:** 3

## Post 1 by @dhreg — 2026-06-29T12:15:49Z

Hello,

I am using Sage 11, and I am trying to render The Events Calendar shortcode. I have already installed the recommended supermundano package, and I am able to edit the templates.

However, if I create a component that is supposed to render the shortcode within page.blade.php or page-content.blade.php, the CSS and Javascript does not render. However, if I add the shortcode directly into app.blade.php the shortcode renders perfectly. There seems to be something being lost within the @yield(‘content’).

Has anyone experienced this and have a solution?

Thanks!

---

## Post 2 by @SnazzyCreative — 2026-06-29T13:40:01Z

The supermundano package has outlined some specific limitations that appears to explain what is happening.

> For the time being there can only be a blade view, the default-template.blade.php file, that allows the events page to work loading the Sage blade layout.

Does this help at all?

> **[supermundano/sage-the-events-calendar - Packagist.org](https://packagist.org/packages/supermundano/sage-the-events-calendar)**

---

## Post 3 by @dhreg — 2026-06-29T13:56:19Z

The events page is loading correctly. It is strictly the shortcodes for the calendar that will not render the javascript and CSS.

So on one of my pages I have the shortcode for the calendar that renders from page-content.blade.php and it renders with no styling and no javascript. However, if I take the shortcode and place it directly in the app.blade.php file, the shortcode will render with the CSS and JS.
