Component not loading properly

I built a “Component” page (used to be global blocks I think) to add to a page and everything looks and works fine in the component and when I add it to a page. When I re-open the page in cornerstone, the component is broken and does not load all the content or styles. I have to change the component from the dropdown to something else then choose the component I want for it to load properly. I have to do that every time I load the page in cornerstone to be able to see the content properly.

Any ideas why this is happening and how to fix it? It is happening to all my “components” no matter what page I place them on. This can be problematic to handing off to another user as they may see it as broken and not know the page just has some kind of loading issue.

Hey Scott,

Please do the following test:

  1. Clearing and Disabling Cache
  2. Testing For Plugin Conflict
  3. Child Theme
  4. Css/Js Customization

Let us know what works.

Thanks.

Ok, so I did some troubleshooting and it looks like some code I use to show excerpts in pages is the cause. I got the code from this post: Add excerpt to pages

Is there some specific way to prevent that code from firing in cornerstone?

Hey Scott,

Which specific code you are referring to from the other post you’ve mentioned? Please check this article on how you can add the excerpt on the pages properly.

Hope that helps.

I am using this code:

add_action( 'init', 'my_add_excerpts_to_pages' );
function my_add_excerpts_to_pages() {
     add_post_type_support( 'page', 'excerpt' );
}

Need some way to prevent this from running in Cornerstone.

Hey Scott,

I’ve asked our developer to check on this thread, please keep posted.

Thank you.

Any word from Charlie on what is going on?

1 Like

We’ll have a fix for this issue in a point release or two. I think it’s stripping shortcodes to make it SEO friendly, but not Cornerstone Preview friendly. Have a great weekend!

Awesome, thanks for letting me know!

1 Like

Hey Scott,

You’re most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.