Complicated Link href question
-
Hi Gabriel,
We use the “Credits for clicking on links” hook and it works very good as a regular link, which works great:
<?php echo do_shortcode('[mycred_link amount="5" href="https://www.tumblr.com/blog/blahblahblah" target="_blank"]<img src="/wp-content/themes/Boke81/profile/images/proft.png" alt="" />[/mycred_link]'); ?>
However, I am curious if this can be used in social sharing icons, and if so, please give me an example on how to incorporate that hook with a template button code like this:
link 1:
<a href="https://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" target="blank" ><img src="https://www.domain.com/wp-content/themes/hehe/images/f.png"></a>
link 2:
<a href="https://www.tumblr.com/share" title="Share on Tumblr" style="display:inline-block; text-indent:-9999px; overflow:hidden; width:20px; height:20px; background:url('https://platform.tumblr.com/v1/share_4.png') top left no-repeat transparent;">Share on Tumblr</a>
Link 3:
<a href="https://fancy.com/fancyit?Category=Other">Fancy</a><script type="text/javascript">(function(){var id="fancy-btn",d=document,f=d.getElementsByTagName("script")[0];if(!d.getElementById(id)){var s=d.createElement("script");s.id=id;s.src="//fancy.com/fancyit.js";f.parentNode.insertBefore(s,f);}})();</script>
- The topic ‘Complicated Link href question’ is closed to new replies.