Cornerstone won't work when X child theme is activated

Cornerstone works when the parent X theme is activated, but doesn’t work when I have my child theme activated. I’m stuck on the loading circle. What do I have to do to make cornerstone work for my child theme? X theme and cornerstone are both up to date.

Hey @mchll9898,

Thanks for writing in! This issue seems to have been cause by a certain customization that you added in your child theme. I am not which of the code you may have added though. To better assist you with your issue, kindly provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role

To know how to create a secure note, please check this out: How The Forum Works

Best Regards.

Thanks for looking into this for me. I’ll include a secure note on this post.

Hello @mchll9898,

Thanks for writing in!

I went ahead and investigated the issue. I made a couple of changes to your site and I can not edit in Cornerstone while your Child theme is active.

Here are the things I did:
1.) I have disabled this PHP code in your child theme’s functions.php file:

/* from https://theme.co/apex/forums/topic/how-to-defer-parsing-of-javascript-3/ on 10.24.2018*/
if (!(is_admin() )) {
	function defer_parsing_of_js ( $url ) {
		if ( FALSE === strpos( $url, '.js' ) ) return $url;
		if ( strpos( $url, 'jquery.js' ) ) return $url;
		if ( strpos( $url, 'x-head.min.js' ) ) return $url;
		return "$url' defer='defer";
	}
	add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
}
/*end defer */

2.) I have cleared all your caches first before testing the Cornerstone editor.

Hope this helps.

Thank you so much! :slight_smile:

You are most welcome!

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