-
AuthorPosts
-
September 30, 2014 at 4:29 pm #327395
I want to use Google + to advertise and Google has given me a string to “place into my homepage” but I don’t know where I can do this.
I tried to add it below the Google Analytics code, but when I used Google’s test to see if it sees the Google + string it said it failed.
Where can I put this string?
Google+Thank you.
- This topic was modified 10 years, 1 month ago by davevi.
September 30, 2014 at 11:54 pm #327743Hi!
I guess you are referring to Google Authorship, you can use this plugin for that:
https://wordpress.org/plugins/google-plus-authorship/Cheers!
JosueOctober 1, 2014 at 3:58 am #327825That’s possibly it, but it seems that the way Google is stating this scenario, it isn’t about posts to a blog, or similar, but to the main page of the site — which is why I think the code needs to go somewhere in the Enfold configuration. The goal is for a client who uses Google and searches for my company, and I have those Adwords registered to my account, then a map and description of my business comes up on the right of the Google search page.
This is why I think it needs to be inserted in the Enfold configuration so that the code is presented through the main (home) page of my website.
“For reference here is the text Google gave me for this process:
By adding a short line of code to http://www.therapyhelpcenter.com/, you can make your Google+ page eligible to show up on the right hand side of the Google search page for relevant queries and make your Google+ page more discoverable. Learn more
Ask your site’s webmaster to add the following line of code to your site’s homepage:
“Google+”
You can also email these instructions to your webmaster”NOTE: I’ve tried several methods to show the code I’m talking about, but even when quoted the one line of Google + code I mean is changed by this forum software to a blue “Google+” link. I hope this doesn’t cause a problem with resolving this issue for you.
- This reply was modified 10 years, 1 month ago by davevi.
October 1, 2014 at 10:37 am #327953Hi!
Can you please post the google+ code on pastebin.com? You can use something like this on functions.php:
function googleplus_code() { if(is_front_page()) { $output = "\n"; $output .= 'GOOGLE+ CODE HERE'; $output .= "\n"; echo $output; } } add_action('wp_head', 'googleplus_code', 10);
Cheers!
IsmaelOctober 1, 2014 at 2:01 pm #328061This reply has been marked as private.October 1, 2014 at 5:29 pm #328311Hey!
Code to put in functions.php would be:
function googleplus_code() { if(is_front_page()) { $output = "\n"; $output .= ' <a href="https://plus.google.com/114176567148165291879" rel="publisher">Google+</a>'; $output .= "\n"; echo $output; } } add_action('wp_head', 'googleplus_code', 10);
Cheers!
JosueOctober 2, 2014 at 6:03 am #328648This reply has been marked as private.October 2, 2014 at 6:11 am #328650Hi,
Can you please create us a WP administrator account? post it here as a private reply.
Regards,
JosueOctober 2, 2014 at 6:32 am #328663This reply has been marked as private.October 2, 2014 at 6:36 am #328665Hey!
Code is now added only to your homepage, you can check it by viewing the source of the page. I ended putting the code here:
https://www.therapyhelpcenter.com/wp-admin/plugin-editor.php?file=functions.phpRegards,
JosueOctober 2, 2014 at 6:55 am #328673This reply has been marked as private.October 2, 2014 at 6:56 am #328675Hi!
Its Hebrew for “double colon”, just PHP things :P
http://stackoverflow.com/questions/592322/php-expects-t-paamayim-nekudotayimBest regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.