Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

How to use Social Likes with Wordpress, etc.

Artem Sapegin edited this page Apr 17, 2014 · 4 revisions

WordPress

Easy Way

Just install Social Likes Wordpress plugin.

Hard (but More Flexible) Way

  • Download and unpack files to your theme folder (e. g. wp-content/themes/yourtheme/social-likes).

  • Add to theme’s header.php (somewhere before </head>):

<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/social-likes/social-likes_flat.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="<?php echo get_template_directory_uri() ?>/social-likes/social-likes.min.js"></script>

Change social-likes_flat.css to social-likes_birman.css or social-likes_classic.css if you want Birman or Classic skin.

  • Add to content-single.php:
<ul class="social-likes social-likes_single" data-url="<?php the_permalink(); ?>" data-title="<?php the_title(); ?>" data-single-title="Share">
	<li class="facebook" title="Share link on Facebook">Facebook</li>
	<li class="twitter" title="Share link on Twitter">Twitter</li>
	<li class="plusone" title="Share link on Google+">Google+</li>
</ul>
Clone this wiki locally