My website https://tarekrabaa.com is experiencing a problem after updating the PRO theme. I cannot add new post or edit existing posts or page in classic word press editor.
The Child theme was kept the same since it has plenty of customizations. After verifying with siteground support, they informed me about a problem in the Child theme.
When I switch to PRO theme, everything is normal again. What is missing in the it is said Chld theme?
I checked and there is not much customization. there are two files and some code in functions.php.
You need to find out what is it in your child theme that causing the issue.
Try to remove the custom codes in your functions.php then check if that resolves the issue.
If not try removing the files.
Regretfully, this is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself.
I solved it.
This code was causing the problem.
function add_defer_to_cf7( $url )
{
//If not js file OR js file with ‘particles.js’ OR ‘jquery.js’ name string, then no need to apply defer
if(FALSE === strpos( $url, ‘.js’) || ((strpos( $url, ‘particles.js’) > 0) || (strpos($url, ‘jquery.js’) > 0))){
return $url;
}
else{
//set defer for .js files
return “$url’ defer='defer”;
}
}