Open Graph Object Debugger - by cmo140 - on WordPress WooCommerce support

This topic has 6 replies, 2 voices, and was last updated 8 years, 9 months ago ago by Jack Richardson

  • Avatar: cmo140
    cmo140
    Participant
    February 3, 2016 at 21:46

    I am getting :More Than One OG URL Specified when fetching facebook data.

    When I use Facebook Open Graph, Google+ and Twitter Card Tags (1.7) I am getting the error above.

    When I turn off the plugin it goes away

    I turned all plugins and turned on the facebook open graph plugin I get the error again.

    The theme is giving out this : og:url already.

    What can I do to fix this.

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 4, 2016 at 08:15

    Hello,

    You can remove default open graph code in the theme file wp-content/themes/legenda/framework/theme-functions.php (lines 1307-1311).

    Best regards,
    Jack Richardson.

    Avatar: cmo140
    cmo140
    Participant
    February 4, 2016 at 15:45

    Is this the code:

    $text = str_replace(‘]]>’, ‘]]>’, $text);
    $text = strip_tags($text);
    $excerpt_length = apply_filters(‘excerpt_length’, 55);
    $excerpt_more = apply_filters(‘excerpt_more’, ‘ ‘ . ‘[…]’);
    $words = preg_split(“/[\n

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 4, 2016 at 15:53

    Hello,

    No, the code is:

    echo '<meta property="og:title" content="' . get_the_title() . '"/>';
    echo '<meta property="og:type" content="article"/>';
    echo '<meta property="og:description" content="' . $description . '"/>';
    echo '<meta property="og:url" content="' . get_permalink() . '"/>';
    echo '<meta property="og:site_name" content="'. get_bloginfo('name') .'"/>';

    Best regards,
    Jack Richardson.

    Avatar: cmo140
    cmo140
    Participant
    February 4, 2016 at 22:24

    I do not see the code wp-content/themes/legenda/framework/theme-functions.php (lines 1307-1311).

    Is this correct location?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 5, 2016 at 11:12

    Hello,

    As I see you’re using old theme version, so in your case the lines are 1280-1284.

    Best regards,
    Jack Richardson.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.