I put the code in wrong spot or something. can you please help, thank you.
Hello Brian,
Thanks for writing in!
The correct content of the functions.php file for the child theme is this:
<?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
// =============================================================================
I have noticed in your screenshot that you are inserting the wrong markup. <head>
tag should not be included. And by the way, why you are adding this code? This is an Open Graph meta data which you do not need. It is already built in the theme. If you have it disabled, you can enable it in X > Theme Options > Social > Open Graph. And if you have Yoast SEO plugin installed, much better because Open Graph is also included in this plugin.
Hope this helps.
I believe it was there for rich pins on pinterest If I remember correctly
I inserted this exact code into the file, I get a “nonce_failure”
ok, at this point, i am not sure what is going on? The view of my entire website is all messed up. I am not sure what I inserted to make it look this way, but wondering if anyone could help.
Hello Brian,
Thanks for updating in! Just for future topics, self responding or bumping your post pushes it back in our Queue system so it takes longer to respond to.
I went ahead and logged in to your site. I disabled any caching feature in your site. I even switched to the parent X theme. I found out that there is something wrong in your child theme. Your child theme do not load the header part of the page. Do you have any file modifications in the child theme? I am wondering if you have modified the header.php in your child theme. I could not totally check it because only a few file displays in the Appearance > Editor. Could you please give us your ftp access so that we can manually check the files in your child theme?
Please let us know how it goes.
Yea, I was following an old thread and trying to insert google analytics with the google optimize (A/B Testing) into the theme files. Anyways, I totally botched that up and did something with the FTP and child theme files as you said. Thank you again for helping, nothing is more frustrating and stressful when you’ve completely messed up your website and have no idea what to do but panic.
Hey Brian,
Thanks for providing the credentials. I have logged in and resolved the issue. I removed the header.php
folder and the global file you have added in the child theme.
Please check your site. It is now using the Child theme again.
Thank you so much! Everythings back to normal. Really thanks again
You are most welcome!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.