Author Box Reloaded
[resolved] Adding an option for Google+ (3 posts)

  1. Rene Michaels
    Posted 5 years ago #

    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/', // CHANGE author uri
    'donate' => 'http://smsh.me/7kit', // 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?

  2. Rene Michaels
    Posted 5 years ago #

    I figured it out! Simple really... change 'http://USERNAME.plus.google.com' to 'http://plus.google.com/USERNAME'

  3. Lopo Lencastre de Almeida
    Plugin Author

    Posted 4 years ago #

    I forgot to thank you for that :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Author Box Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic