• Resolved rene-michaels

    (@rene-michaels)


    OK I fiddled with the code to try and add Google+. I got everything to work except for the Google+ link gets messed up in the author box on visitor-side.

    I think the issue is due to “plus” being a sub-domain ‘http://USERNAME.plus.google.com’. Below is the section of code from my php file:

    * Section to modify
    */
    function google_authorbox_add_sites( $known_sites ) { // CHANGE the function prefix name
    $known_sites[‘Google Plus’] = array( // CHANGE the key name
    ‘favicon’ => plugin_dir_url( __FILE__ ) . ‘images/google_plus.png’, // CHANGE the image name
    ‘url’ => ‘http://USERNAME.plus.google.com’, // CHANGE the service URI
    ‘plugin’ => array (
    ‘author’ => ‘Lopo Lencastre de Almeida <dev@ipublicis.com>’, // CHANGE author name
    ‘url’ => ‘http://ipublicis.com/&#8217;, // CHANGE author uri
    ‘donate’ => ‘http://smsh.me/7kit&#8217;, // CHANGE donate link
    ),
    );
    return $known_sites;
    }
    add_filter(‘authorbox_known_sites’,’google_authorbox_add_sites’,10,1); // CHANGE the function prefix name

    ?>

    Anyone have any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding an option for Google’ is closed to new replies.