![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Hey Guys,
I am currently trying to add the Google + One Button to my site with this tutorial here>> http://www.wpframeworktutorials.com/...lusone-button/ I have added Jaques code to my functions.php as well as the .css styling and java scripto to the header area. My problem is that I do not want the Google + One Button to show on my Home Page, Word press Pages or in the Grid Loop in the Blogging Category I would only like to have the Google + One show on Single Article pages (I think I have explained that properly?) but if not this is a example of what I mean>>> http://www.lostplanet-techbloggers.c...twit-pro-test/ My problem is that I do not know enough about PHP to selectively isolate things to specific areas such as this. I have been experimenting with various things but I cannot figure it out. Regardless, can one of you much more knowledgeable folks here please help me with this? Here is the code that I currently have in the functions.php add_action('genesis_after_post_content', 'campbellmcarthur_plus_one'); function campbellmcarthur_plus_one() { if ( is_home() ) return; // don't show +1 on home page ?> <div class="plusone"><g:plusone href="<?php the_permalink() ?>"></g:plusone></div> <?php } My site>> http://www.lostplanet-techbloggers.com/ Thank you Campbell |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prefered Google Analytics Placement in Genesis Settings? | seth17 | General Discussion | 3 | 03-30-2011 11:04 PM |
| Google Analytics Placement Question | dereksdomain | General Discussion | 5 | 07-11-2010 04:27 PM |
| Google Analytics Placement Question | kiaajjjj | General Discussion | 4 | 06-26-2009 07:45 PM |
| Google ads placement customization | galvanizd | General Discussion | 1 | 04-12-2009 12:38 PM |
| Google Analytics tracking code placement | eastgirl | General Discussion | 3 | 04-07-2009 11:06 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us