Support » Plugin: Social Media Widget » (workaround) Page does not contain publisher markup

  • Resolved IngmarVerheij

    (@ingmarverheij)


    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/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘(workaround) Page does not contain publisher markup’ is closed to new replies.