WordPress.org

Forums

Add Link to Facebook
Redundant metatags on homepage (3 posts)

  1. edwardnh
    Member
    Posted 4 years ago #

    I have unchecked the radio button for "Use Open Graph protocol:" but even so the homepage gets three Facebook-specific metatags added to it because of this parameter in add-link-to-facebook-class.php:

    else if (is_home())
    {$charset = get_bloginfo('charset');$title = html_entity_decode(get_bloginfo('title'), ENT_QUOTES, get_bloginfo('charset'));
    echo '<meta property="og:title" content="' . htmlspecialchars($title, ENT_QUOTES, $charset) . '" />' . PHP_EOL;
    echo '<meta property="og:type" content="blog" />' . PHP_EOL;
    echo '<meta property="og:url" content="' . get_home_url() . '" />' . PHP_EOL;}}

    Is there any way to have this if clause affected by the "Use Open Graph protocol:" radio button? I already have OGP taken care of on my site and do not need it on the homepage.

    http://wordpress.org/extend/plugins/add-link-to-facebook/

  2. M66B
    Member
    Posted 4 years ago #

    I see your problem. The just released version 1.44 of the plugin will not add the Open Graph protocol meta tags on the home page if every user has disabled the protocol.

  3. edwardnh
    Member
    Posted 4 years ago #

    I see the change. Many thanks for that and the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Add Link to Facebook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic