Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #8366

    Hello,

    I woud like to add the Google +1 button on the top of the homepage http://digitaldiscovery.com.pt as you can see in the picture:

    http://imageshack.us/photo/my-images/716/digitaldiscoveryagnciad.png/

    The code is:

    <!– Coloque esta etiqueta onde pretende que o botão de +1 seja apresentado –>

    <g:plusone size=”medium” annotation=”inline”></g:plusone>

    <!– Coloque esta chamada de apresentação onde for apropriado –>

    <script type=”text/javascript”>

    window.___gcfg = {lang: ‘pt-PT’};

    (function() {

    var po = document.createElement(‘script’); po.type = ‘text/javascript'; po.async = true;

    po.src = ‘https://apis.google.com/js/plusone.js';

    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(po, s);

    })();

    </script>

    Can you Help me?

    Tks in advance guys!

    Pedro M Pereira

    #61161

    Help?

    Tks in advance :P

    #61162

    Hi,

    you can paste your code in your header.php below

    <div class='container'>
    <?php
    /*
    * display the main navigation menu
    * modify the output in your wordpress admin backend at appearance->menus
    */
    $args = array('theme_location'=>'avia2', 'fallback_cb' => '');
    wp_nav_menu($args);
    ?>

    #61163

    Problem solved. However whats happening is the Google +1 button is not center and its making the top of the site larger. At the same time the description of the services is under the slide show.

    How can I fix this?

    Image of the problems in the folowing link:

    http://imageshack.us/photo/my-images/848/digitaldiscoveryagnciad.png/

    Tks in advance!

    #61164

    Hey!

    You pasted the code in wrong. You’ve pasted a piece of it twice, once of which you’re wrapping the entire slideshow. Maybe you forgot to remove some edits you made earlier?

    Regards,

    Chris

    #61165

    Hey Chris,

    Well since it seems I cant get this working out I will remove it :)

    Tks anyway :))

    #61166

    Hey,

    Right below your body you have this as a leftover:

    <a href="https://plus.google.com/106742328899347516762 ?rel=author">

    This is what you forgot to remove earlier – as I said before.

    If you look at a collapsed piece of code there’s still a lot that has to be removed for it to function properly

    <body id="top" class="home page page-id-425 page-template-default Firefox Firefox10">
    <a href="https://plus.google.com/106742328899347516762 ?rel=author">
    <div id="wrap_all">
    <a href="https://plus.google.com/106742328899347516762 ?rel=author">

    See how you’ve got it twice? I really suggest you revert to before you put it in, then try and add it again, I’ll give you instructions on that once this is out of the way :)

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

The topic ‘Google + Share Button’ is closed to new replies.