• Hi.

    Want to link my wordpress site to my Google+ account. To do this, I need to add a line of html code to the front page of my site. Never done this before. Tried using a text widget but this didn’t work.

    Any guidance appreciate.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Can you show us the piece of code? Is this just a link or is it a kind of meta tag or script?

    You need to grab (copy) the code snippet from Google, <meta …… />, then edit header.php by pasting this snippet just above </head>.

    To edit header.php:

    Admin Dashboard>Appearance>Editor>Make sure you current theme is selected at top right>look on right column for the file header.php and click on it>look for the line with </head> in the editor>place cursor just before </head> and paste the code>update/save>now go to your site and view the source code…you should see this meta tag in the source just before </head>

    Thread Starter pjager

    (@pjager)

    Hi and thanks for the speedy reply. It’s a piece of code that starts google+

    Please be aware that any changes you make to a theme file such as header.php will be overwritten when your theme is updated – for this reason, it’s strongly recommended that you use a Child Theme for these kinds of changes – http://codex.wordpress.org/Child_Themes

    Oh I see…yes, above was for things like google analytics…It seems that Google+ just provides a url to your page…

    You can add this in a text widget but it needs to be in the form of an a href tag:

    <a href "yougoogleurlhere">Me on Goole+</a>

    http://www.w3schools.com/html/html_links.asp

    You could also upload and image and use it instead of text:

    http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_image_link

    Thread Starter pjager

    (@pjager)

    Thanks for the answer but for a relatively inexperinced person like me, Google don’t make it easy to link themselves with such a popular platform as WordPress.

    All I really want to do is have my picture appear with my search results on google. Is there an easy way with wordpress? Or, with the answer I gave early is there a way to add a piece of google code into my front page coding ?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Adding HTML to front page?’ is closed to new replies.