Component Is Showing Code Above Footer After Making Changes to it

Hi, a few years ago when there were Global Blocks instead of Components for your theme, I created a global block to be positioned just above the footer to go on every page of a website. I got the script from yourselves to add into the functions.php to make this possible.

It’s been working fine up until today. I went into the component to make some changes to it and after doing that, on the front end it’s now displaying code instead of the content in the component. I don’t know if the script in the functions.php file needs to be updated to something different, as at the minute it refers to global block instead of component. I have no idea how to fix it! I hope you can help!

I’ve had to remove the script from the live site because it was showing code on the front end, but I’ve created a staging site with the script in the functions.php file so you can see the issue.

I’ll put the website details and login info in a secure note.

Thanks!

Hi @core365,

Thanks for reaching out.
If you have already converted the Global Block to the Component, you need to use the shortcode respective to the components. Please go through the following article, which may help you with this.

Alternately. I would suggest you use the Footer builder, i.e., exclusively available with Pro, not in X you are using, and create a custom footer and use the component directly inside the Cornerstone as an element.
If you want to upgrade the X to Pro, please go through the process explained here in this article: https://theme.co/docs/converting-from-x-to-pro.

If that is not the case and you are trying to point out something else, please provide a screenshot marked with the issue or any video that helps us to recognize the problem.

Thanks

Hi @tristup,

Thanks for your reply!

I didn’t have to convert the Global Block to the Component, it did it automatically.

Thanks for the article, I followed it to get the component shortcode. I then replaced the global block shortcode in the functions.php file with the component shortcode, but it’s not displaying on the website. Other than the shortcode, does any of the script need to change for it work?

I’ll put the details in a secure note.

Thanks!