WordPress.org

Forums

Social Media Widget
[resolved] (workaround) Page does not contain publisher markup (2 posts)

  1. IngmarVerheij
    Member
    Posted 3 years ago #

    Hi,

    I want to use the Google+ icon from the plugin to represent the Google+ publisher, preventing the message:

    Page does not contain publisher markup

    at the Google Structured Data Testing Tool.

    To achieve this I've replaced the following lines in social-widget.php:

    $html .= '<a href="' . $slug . '" ' . $this->nofollow . ' ' . $this->newtab.'>';

    with this

    $html .= '<a href="' . $slug . '" ' . $this->nofollow . ' ' . $this->newtab .' ';
    if (strpos($slug,'plus.google.com') !== false) {
       $html .= 'rel="publisher"';
    }
    $html .= '>';

    It would be great if this is implemented in the next release :-)

    http://wordpress.org/extend/plugins/social-media-widget/

  2. Blink Web Effects
    Member
    Posted 3 years ago #

    rel="publisher" has been added to 4.0. Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Social Media Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.