WordPress.org

Ready to get started?Download WordPress

Forums

Busiprof
Linking Busiprof WordPress Site to Google+ Page (6 posts)

  1. TaraStoll
    Member
    Posted 7 months ago #

    Hi,

    I am attempting to link my website to my Google+ business page. According to Google's instructions, "create a bidrectional link by placing the following code snippet in the <head> tag of the site’s HTML:

    a href="https://plus.google.com/{+PageId}" rel="publisher" />.

    My question is where exactly to place the code. I tried going into the theme editor, but it didn't seem to link correctly.

    Thank you!

  2. Hari Maliya
    Member
    Posted 7 months ago #

    Hi TaraStoll,

    Add your Google+ business page link inside in body part.

    Here are same instruction to add link in body part.

    1. Like your Google+ business page link.
    " <a href="https://plus.google.com/{+PageId}" rel="publisher" />Google Plus </a> "

    2. Past your link code after body tag.

    Thanks

  3. Hari Maliya
    Member
    Posted 7 months ago #

    Hi TaraStoll,

    Plz paste your Google+ business page link code in header.php.
    It locate in theme directory.

    Like these type here.
    <body <?php body_class(); ?>>
    <a href="https://plus.google.com/{+PageId}" rel="publisher" />Google Plus </a>

    Thanks

  4. Plz paste your Google+ business page link code in header.php.

    That's a really bad idea. If the theme get's updated then your changes will get wiped out and you'll be back to square one.

    If you have to do it that way then create an activate a child theme instead. Then copy the original header.php into the child theme directory and edit that copy instead.

    http://codex.wordpress.org/Child_Themes

  5. TaraStoll
    Member
    Posted 7 months ago #

    Thanks!

  6. webriti
    Member
    Theme Author

    Posted 7 months ago #

    Yes

    Editing php code or any css code in the parent theme will overwrite all your changes when you do theme update.

    So child theme is always the better solution..

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.