I’m getting the error: "the preview HTML did not include a closing ;tag. It may fail to load or work properly. This happens when I open the page on wordpress x theme.
I’ve checked everywhere but can’t find the fault
Can you help please?
Thank you
I’m getting the error: "the preview HTML did not include a closing ;tag. It may fail to load or work properly. This happens when I open the page on wordpress x theme.
I’ve checked everywhere but can’t find the fault
Can you help please?
Thank you
Hi There,
Could you please double check the custom code under functions.php
file?
Also try testing a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
Let us know how it goes!
Hey, I’ve copied the function php file from my x child theme folder.
Running it through an online checker it said there’s 7 errors… I don;t know how to fix this, could you please have a look at the secure note with the code I sent you?
Thank you so much
Hi There,
I’ve tried this code on my local install and it’s working fine:
<?php
// =============================================================================
// FUNCTIONS.PHP
// -----------------------------------------------------------------------------
// Overwrite or add your own custom functions to X in this file.
// =============================================================================
// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
// 01. Enqueue Parent Stylesheet
// 02. Additional Functions
// =============================================================================
// Enqueue Parent Stylesheet
// =============================================================================
add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
// Additional Functions
// =============================================================================
function head_scripts() { ?>
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '272766349856677'); // Insert your pixel ID here.
fbq('track', 'PageView');
</script>
<noscript>
<img height="1" width="1" style="display:none"
src="//www.facebook.com/tr?id=272766349856677&ev=PageView&noscript=1"
/>
</noscript>
<?php }
add_action( 'wp_head', 'head_scripts' );
Could you please try again?
Let us know how it goes!
Try to disable your cache plugin. This works for me. (comet cache)
If this doesn’t work: try to shut down the plugins one by one…
Cheers!
It helped here
cheers!
Great! Thanks for letting us know!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.