Cornerstone page goes white when adding code

Hello, I am trying to add a div class from PayPal so that members can purchase a manual to this page: http://canadianpolefitnessassociation.com/cpfa-certification/

When I add a classic text box and then paste the following code (see private note), the entire screen goes white. I didn’t bother trying to save it, I just exited the page, as I don’t want it to screw up the whole page.

Any idea what might be going on? I tried classic text element and raw content and content elements. Thank you!

I’ve added it to the page mentioned above and to the this page: http://canadianpolefitnessassociation.com/courses-and-workshops-2018/

I can see it there, but when I go back in to edit these pages, the page is completely white.

Hi there,

Please kindly use the Classic Raw Content element to add the code. You first need to make sure that code is working ok on its own. Test that by adding a test page and pasting the code to the standard WordPress Editor and not the Cornerstone. It should work there if not, you need to double check the code you want to add.

If you still have the problem kindly get back to us with the URL/User/Pass of your WordPress dashboard using the Secure Note functionality of the post to follow up the case.

Thank you.

Thank you for the quick response! I did check the code on a test page and it is working, so I went ahead and put it into the page and it is showing on the front end, however in the backend the preview area is blank (all white). You can see on the following two pages once you open in cornerstone:

http://canadianpolefitnessassociation.com/cpfa-certification/
http://canadianpolefitnessassociation.com/courses-and-workshops-2018/

I originally used the classic text element, but after seeing your response I went in and changed it to Classic raw content on the first page listed above. But the preview area is still blank. The only way I can edit is if I view it in the other mode (skeleton mode?? Not sure what it is called. The two squares in a box icon on the left side).

Hi There,

As you are using a script it might be conflicting with Cornerstone, I would suggest design your page and add the script for the last considering it is working on the front end.

Hope it helps

Not sure I understand. The page was designed before adding the script.

Hi there,

I checked the CPFA page and I see what you mean. As soon as I remove the code from the COntent Element it is working ok and I put the code and it fails.

And you are right the name of the mode is Skeleton mode. I checked the code and I think the reason is the Javascript inside which tries to document.write write something into the document.

Now the Cornerstone and all other Front End page builders use the iFrame technology to render the actual website and as the code tries to add something inside the document, it is added to the whole document of the backend instead f the iFrame inside.

Think of a big window which as smaller window inside. That smaller window has no problem with the code when checked separately in the front end without the big window.

But as soon as it is inside the big window the code adds the script to the big window instead of the small window and ruins the whole thing.

Unfortunately, there is nothing can be done in this situation. You either need to continue using Skeleton mode or remove the code and save and reload and start your editing and in the end, add the code again for each edit.

Thank you for your understanding.

Ah ok, I see. As everything is still working and I can edit in skeleton mode, I will keep it as is for now. Thanks for getting back to me on this!

You’re most welcome!

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