![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Hello everyone, please refer everything below to my website MMAFight.com...
I needed some help on implementing the following code from ShareThis.com to my homepage. Under each of my thumbnails for each post (both columns at the top)- I have a F-share, Tweet, E-mail button. I want to switch that to Tweet, F-Like and Google +1. The following code is what I have now which keeps it in a straight line right under each thumbnail post: Code:
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="text-align: center; vertical-align: middle;"><span class="st_facebook_button" st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText="Facebook"></span></td>
<td style="text-align: center; vertical-align: middle;"><span class="st_twitter_button" st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText="Tweet"></span></td>
<td style="text-align: center; vertical-align: middle;"><span class="st_email_button" st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText="Email"></span></td>
<td style="text-align: right; vertical-align: middle;"><a href="<?php the_permalink() ?>#comments" rel="bookmark"><span class="comments"><?php comments_number('0', '1', '%'); ?></span></a></td>
</tr>
</tbody>
</table>
New Button Code: Code:
<span class='st_twitter_button' displayText='Tweet'></span><span class='st_fblike_hcount' ></span><span class='st_plusone_button' ></span> Script Tag to put in Header: Code:
<script type="text/javascript">var switchTo5x=true;</script><script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher:'898aa522-a0d2-498a-b8b6-e66c995c31f5'});</script>
Thanks in advance guys.
|
|
#2
|
||||
|
||||
|
Please make the recommended change, post a link to your site, and let me know where this code is going.
__________________
Nick "Fred and/or George Weasley" Croft Designs by Nick the Geek @Nick_theGeek on Twitter Make web design easier, get FireBug for FireFox Want to learn more about Genesis? Check out my Genesis Explained Series |
|
#3
|
|||
|
|||
|
Hi Nick and thanks for the prompt response!
Website: http://MMAFight.com (Homepage) Code location: Home.php I want to change the social media icons I have now under each post with thumbnails (2 Columns: UFC and MMA News, UFC and MMA Videos. Also at the bottom: UFC Chicks) Currently looks like this (F-Share, Tweet, E-mail): I want it to look like this (Tweet, F-Like, +1): Last edited by NicktheGeek; 08-29-2011 at 01:35 PM. |
|
#4
|
||||
|
||||
|
have you switched the code?
__________________
Nick "Fred and/or George Weasley" Croft Designs by Nick the Geek @Nick_theGeek on Twitter Make web design easier, get FireBug for FireFox Want to learn more about Genesis? Check out my Genesis Explained Series |
|
#5
|
|||
|
|||
|
Well that's the thing Nick.
Currently my code looks like this: Code:
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="text-align: center; vertical-align: middle;"><span class="st_facebook_button" st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText="Facebook"></span></td>
<td style="text-align: center; vertical-align: middle;"><span class="st_twitter_button" st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText="Tweet"></span></td>
<td style="text-align: center; vertical-align: middle;"><span class="st_email_button" st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText="Email"></span></td>
<td style="text-align: right; vertical-align: middle;"><a href="<?php the_permalink() ?>#comments" rel="bookmark"><span class="comments"><?php comments_number('0', '1', '%'); ?></span></a></td>
</tr>
</tbody>
</table>
I tried making the changes by putting it like this: Code:
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="text-align: center; vertical-align: middle;"><span class="st_twitter_button" st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText="Tweet"></span></td>
<td style="text-align: center; vertical-align: middle;"><span class="st_fblike_hcount" st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?></span></td>
<td style="text-align: center; vertical-align: middle;"><span class="st_plusone_button" st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?></span></td>
<td style="text-align: right; vertical-align: middle;"><a href="<?php the_permalink() ?>#comments" rel="bookmark"><span class="comments"><?php comments_number('0', '1', '%'); ?></span></a></td>
</tr>
</tbody>
</table>
But it just messes up my entire page, I think I am doing something wrong. Let me know if what I did above looks correct. |
|
#6
|
|||
|
|||
|
Any suggestions Nick?
If anyone else has any ideas on how to fix this, feel free to post your recommendations/suggestions. Thanks in advance guys! |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Social Media Icons? | TyyWard | General Discussion | 6 | 03-26-2009 07:21 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