Atrox
Legacy Member
Hallo
voor mijn blog zou ik graag share buttons toevoegen. Ik wou dit doen met een plugin (ShareThis), maar blijkbaar geeft die problemen met mijn theme. Daarom dus dat ik dat nu manueel wil doen.
Mijn single.php komt standaard met de volgende code:
Ik zou graag die <li> willen behouden maar de tekst vervangen door de icoontjes van Google+/Facebook/Twitter. Moet ik gewoon de officiële code toevoegen tussen de <li></li> telkens? En waar moet ik dan mijn Js plaatsen, in de header?
voor mijn blog zou ik graag share buttons toevoegen. Ik wou dit doen met een plugin (ShareThis), maar blijkbaar geeft die problemen met mijn theme. Daarom dus dat ik dat nu manueel wil doen.
Mijn single.php komt standaard met de volgende code:
<?php if ($wpzoom_singlepost_share == 'Show') { ?>
<div id="socialicons">
<ul>
<li><a href="http://twitter.com/share?url=<?php echo urlencode(the_permalink());?>&text=<?php echo urlencode(the_title());?>"><img src="<?php bloginfo('template_directory');?>/images/twitter.png" alt="Tweet This!" /><?php _e('Tweet This', 'wpzoom');?></a></li>
<li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title();?>" rel="external,nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" alt="Share on Facebook" /><?php _e('Share on Facebook', 'wpzoom');?></a></li>
<li><a href="http://digg.com/submit?phase=2&url=<?php the_permalink();?>&title=<?php the_title();?>"><img src="<?php bloginfo('template_directory');?>/images/digg.png" alt="Digg it!" /><?php _e('Digg This', 'wpzoom');?></a></li>
<li><a href="http://del.icio.us/post?v=4&noui&jump=close&url=<?php the_permalink();?>&title=<?php the_title();?>"><img src="<?php bloginfo('template_directory');?>/images/delicious.png" alt="Add to Delicious!" /><?php _e('Bookmark', 'wpzoom');?></a></li>
<li><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>"><img src="<?php bloginfo('template_directory'); ?>/images/stumble.png" alt="Stumble it" /><?php _e('Stumble', 'wpzoom');?></a></li>
<li><?php if (strlen($wpzoom_misc_feedburner) > 1) { echo"<a href=\"$wpzoom_misc_feedburner\">"; } else { ?><a href="<?php bloginfo('rss2_url');?>"> <?php } ?><img src="<?php bloginfo('template_directory'); ?>/images/feed.png" alt="Subscribe by RSS" /><?php _e('RSS Feed', 'wpzoom');?></a></li>
</ul>
</div> <!-- end social box-->
<div id="socialicons">
<ul>
<li><a href="http://twitter.com/share?url=<?php echo urlencode(the_permalink());?>&text=<?php echo urlencode(the_title());?>"><img src="<?php bloginfo('template_directory');?>/images/twitter.png" alt="Tweet This!" /><?php _e('Tweet This', 'wpzoom');?></a></li>
<li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title();?>" rel="external,nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" alt="Share on Facebook" /><?php _e('Share on Facebook', 'wpzoom');?></a></li>
<li><a href="http://digg.com/submit?phase=2&url=<?php the_permalink();?>&title=<?php the_title();?>"><img src="<?php bloginfo('template_directory');?>/images/digg.png" alt="Digg it!" /><?php _e('Digg This', 'wpzoom');?></a></li>
<li><a href="http://del.icio.us/post?v=4&noui&jump=close&url=<?php the_permalink();?>&title=<?php the_title();?>"><img src="<?php bloginfo('template_directory');?>/images/delicious.png" alt="Add to Delicious!" /><?php _e('Bookmark', 'wpzoom');?></a></li>
<li><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>"><img src="<?php bloginfo('template_directory'); ?>/images/stumble.png" alt="Stumble it" /><?php _e('Stumble', 'wpzoom');?></a></li>
<li><?php if (strlen($wpzoom_misc_feedburner) > 1) { echo"<a href=\"$wpzoom_misc_feedburner\">"; } else { ?><a href="<?php bloginfo('rss2_url');?>"> <?php } ?><img src="<?php bloginfo('template_directory'); ?>/images/feed.png" alt="Subscribe by RSS" /><?php _e('RSS Feed', 'wpzoom');?></a></li>
</ul>
</div> <!-- end social box-->
Ik zou graag die <li> willen behouden maar de tekst vervangen door de icoontjes van Google+/Facebook/Twitter. Moet ik gewoon de officiële code toevoegen tussen de <li></li> telkens? En waar moet ik dan mijn Js plaatsen, in de header?


) en een paar interessante dingen gelezen. Ik ben wel niet van plan om zo'n kader te bouwen, maar eerder voort te werken op de huidige lay-out en die aan te passen. Ik zal straks eens een printscreen maken van hoe het er nu uitziet.