Why do SSIs (PHP includes) lose their design?

I want to break my app up into reusable pieces, but as soon as I do the Include stops rendering properly in Design view. It seems there needs to be a way to have it use “temporary” CSS and JS files since those are no longer on the same page as the Include?

Here is the SSI on my Index page (index.php).

Here is the SSI page (sidebar.php)

Here is the top of code view on the SSI page.

Community Page
Last updated: