Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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.
    #327743

    Hi!

    I guess you are referring to Google Authorship, you can use this plugin for that:
    https://wordpress.org/plugins/google-plus-authorship/

    Cheers!
    Josue

    #327825

    That’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.
    #327953

    Hi!

    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!
    Ismael

    #328061
    This reply has been marked as private.
    #328311

    Hey!

    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!
    Josue

    #328648
    This reply has been marked as private.
    #328650

    Hi,

    Can you please create us a WP administrator account? post it here as a private reply.

    Regards,
    Josue

    #328663
    This reply has been marked as private.
    #328665

    Hey!

    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.php

    Regards,
    Josue

    #328673
    This reply has been marked as private.
    #328675

    Hi!

    Its Hebrew for “double colon”, just PHP things :P
    http://stackoverflow.com/questions/592322/php-expects-t-paamayim-nekudotayim

    Best regards,
    Josue

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.