Adding an option for Google
-
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 ‘https://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’ => ‘https://USERNAME.plus.google.com’, // CHANGE the service URI
‘plugin’ => array (
‘author’ => ‘Lopo Lencastre de Almeida <[email protected]>’, // CHANGE author name
‘url’ => ‘https://ipublicis.com/’, // CHANGE author uri
‘donate’ => ‘https://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?
- The topic ‘Adding an option for Google’ is closed to new replies.