I'm using NGFB Pro, which adds its own og: metadata. I've followed the instructions you've given other customers on how to strip this from Salient:
If I comment out the offending line from functions.php it works. But you have also suggested removing the action from the child theme's function.php. I have tried this but it does not work:
remove_action( 'wp_head', 'add_opengraph', 5 );
It's not removing the action. I've checked for syntax errors but it passes. Not sure if I need to do anything further to resolve this.
I'm using NGFB Pro, which adds its own og: metadata. I've followed the instructions you've given other customers on how to strip this from Salient:
If I comment out the offending line from functions.php it works. But you have also suggested removing the action from the child theme's function.php. I have tried this but it does not work:
remove_action( 'wp_head', 'add_opengraph', 5 );
It's not removing the action. I've checked for syntax errors but it passes. Not sure if I need to do anything further to resolve this.
Thanks!
Nathan
Hey Nathan!
Could you please provide wp-admin details so we can take a look.
Thanks
Salient Support Team
Hey - try this:
function nectar_after_setup () { remove_action( 'wp_head', 'add_opengraph', 5 ); } add_action('after_setup_theme', 'nectar_after_setup");YES it worked!
Thanks for helping. :)
(For anyone reading this, there is an accidental double quote at the end of that code which should be changed to a single quote.)