Cornterstone Preview Could Not Load

In Cornerstone I am suddenly getting this error:

  • I have changed from my child theme to the X Pro theme
  • I have disable all plugins
  • I have activated Console and see the following error:

Frame did not find closing < /html > tag
(anonymous) @ app.react18.7.6.10.js:124

Since I have stripped the site back to just the latest X Pro theme with no plugins, I can’t imagine where to find this error.

The error had to do with a custom page template I copied from the X Pro theme to the child theme and those pages that had the theme applied were causing the issue. I moved the whole /framework/views/starter/ to the child theme, I copied template-blank-4.php and changed the name that that breaks.

The filename I changed it to was template-location.php and the content was:

<?php // Custom (Location | No Container | Header, Footer) get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?> > <?php x_get_view( 'global', '_content', 'the-content' ); ?> <?php endwhile; ?>
<?php get_footer(); ?>

And now it doesn’t show up as a template. I it only showed up as a template when I started the code with <?php /* Custom (Location | No Container | Header, Footer)*/ ?> but that broke Cornerstone apparently.

Hello Mark,

Thanks for writing in!

Instead of using:

// Custom (Container Location | Header, Footer)

You will have to put this:

// TEMPLATE NAME: Blank - Custom (Container Location | Header, Footer)

For further reference, check this out:

Best Regards.

That worked. It was such an easy fix. Thanks. Can you tell me how to replace the content of the default template with the content of Blank - No Container | Header, Footer so I don’t have to manually select that every time?

Hey Mark,

Regretfully, we do not support editing the templates. We encourage our users to use Cornerstone Builders instead of editing layout in the child theme.

If you continually need to edit the templates by custom coding a child theme, that would require custom development which is beyond the scope of our theme support. But, you can subscribe to our One service and we’ll happily guide with custom coding.