Okay
  Public Ticket #220822
Open Graph conflict
Closed

Comments

  • Nathan started the conversation

    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

  •  8,425
    Tahir replied

    Hey Nathan!

    Could you please provide wp-admin details so we can take a look. 

    Thanks


    ThemeNectar Support Team 

  •   Nathan replied privately
  •  983
    ThemeNectar replied

    Hey - try this:

     
    function nectar_after_setup () {
        remove_action( 'wp_head', 'add_opengraph', 5 );
    }
    add_action('after_setup_theme', 'nectar_after_setup");
    
  • Nathan replied

    YES it worked!

    Thanks for helping. :)

  • Nathan replied

    (For anyone reading this, there is an accidental double quote at the end of that code which should be changed to a single quote.)