Social Likes

Description

Little, easy to use plugin that adds social networks sharing buttons to WordPress pages and posts.

Supported social networks:

  • Facebook
  • Twitter
  • Google+
  • Pinterest
  • LiveJournal
  • LinkedIn
  • VK.com and other popular Russian social networks

Features:

  • Easy to install
  • All buttons in a single style
  • Four different skins give 11 different looks for social buttons
  • Won’t explode your page’s layout
  • Much faster than proprietary social buttons
  • Likes counters can be shown for each social network
  • Buttons can be reordered easily
  • Horizontal or vertical buttons layout or single button mode with popup
  • Interactive preview of buttons look on the plugin settings page
  • Control appearance of buttons for each page and post
  • Additional options for Pinterest

Check screenshots page or try live preview to pick buttons look that best fits theme design of your site.

Translation currently available in English and Russian.
Any help with translating Social Likes to other languages will be greatly appreciated! (i18n with gettext)

Based on the Social Likes library by Artem Sapegin.

Screenshots

  • Settings page allows you to customize list of website buttons and how they appear on page
  • Option in editor allows to control appearance of buttons for every post or page
  • Button style customization with 4 skins, "Icons only" and "Single button" modes

FAQ

1. Is it possible to place social buttons above the content of the page/post?

Yes. By default plugin places social buttons after page/post content. We find it reasonable to view a post before sharing it with others.
But you can place buttons before or even before-and-after page/post content using hidden feature:

  1. Go to options list of your WordPress site: /wp-admin/options.php
  2. Find ‘sociallikes_placement’ option
  3. Assign one of these values to it: before, after, before-after
  4. Don’t forget to apply changes with ‘Save Changes’ button

Sometimes WordPress options don’t save because of a WP bug. To fix it, you may need to set the max_input_vars PHP variable to a greater value.

Also you can insert buttons in post excerpts, see question 4 for details.

2. Is it possible to use different language (locale) for plugin than the default locale of WordPress?

Yes. By default plugin uses the same language (locale) as WordPress does.
If there is no translation for this locale, plugin would use English as a default language. We find it suitable for most cases.
But you can change plugin language (locale) using hidden feature:

  1. First of all check whether plugin has translation to your language or not. If it does, go further. If not, contribute translation! 🙂
  2. Go to options list of your WordPress site: /wp-admin/options.php
  3. Find ‘sociallikes_customlocale’ option
  4. Assign proper locale to it. (See list of correct locales)
  5. Don’t forget to apply changes with ‘Save Changes’ button
3. Is there any shortcode for placing buttons anywhere inside page/post content?

Yes. In order to use Social Likes shortcodes on your blog, you should first enable this hidden feature on the WordPress advanced options page.

  1. Go to options list of your WordPress site: /wp-admin/options.php
  2. Find ‘sociallikes_shortcode’ option
  3. Change its value to ‘enabled’. (You can then switch it back to ‘disabled’ if you wish to turn the shortcodes off)
  4. Don’t forget to apply changes with ‘Save Changes’ button

Then, to insert Social Likes button on any position in a post, paste the following code there: [wp-social-likes]

4. Is it possible to show Social Likes buttons for post excerpts, not only for full posts?

Yes. You should just enable this hidden feature on the WordPress advanced options page.

  1. Go to options list of your WordPress site: /wp-admin/options.php
  2. Find ‘sociallikes_excerpts’ option
  3. Change its value to ‘enabled’
  4. Don’t forget to apply changes with ‘Save Changes’ button
5. Is there a function to display Social Likes buttons anywhere in a theme template?

Yes, after the Social Likes plugin is activated, you can use these two functions in your themes:

  • social_likes( $post_id ) – displays Social Likes buttons
  • get_social_likes( $post_id ) – returns buttons as string

$post_id is an optional argument. You can use it to get buttons for a specific post.

Reviews

Все было отлично, но …

Плагином был вполне доволен, пока не обновил WordPress до версии 4.6. После этого пропали счетчики Facebook. Надеюсь по этому поводу будет обновление…

Твёрдая пятёрка!

Использую плагин 1 год. Пробовал и другие. Этот лучший. Из плюсов: отображает на моём сайте счётчик Google+, хотя осенью прошлого года у многих других социальных плагинов этот счётчик “слетел”. Была заминка и у Social Likes, однако после очередного обновления всё восстановилось. Плагин прост в установке и устроен настолько удобно, что никаких вопросов у пользователя не возникает. Для моей темы (“Tempera”) идеален: отлично работает и с записями, и со страницами. Установлен на сайте olegchuvakin.ru.
Из пожеланий: хотелось бы общий счётчик (суммирующий).
Оценка: пять баллов.

Decent, but some poor coding

This plugin does its job decently well, but doesn’t call its JavaScripts properly, creating potential conflicts with other scripts. By including scripts with a <link> tag and not using wp_enqueue_scripts for external JS, this plugin can clash with others very easily.

Благодарствую!

Артем, спасибо за плагин! Путь к нему был “долгим и тернистым”: гугл – wp kama – снова гугл – хабр – гитхаб – репозиторий ВП.

Не сильно грузит страницу, легко настраивается (вывод на определенных страницах, архивах или записях, например), приятное стилевое оформление кнопок, очень удобно оформлена страничка FAQ – все вопросы отпали после её прочтения.

Всем рекомендую!

Read all 27 reviews

Contributors & Developers

“Social Likes” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

6.9.19

  • Fixed: problems with post excerpts happening in some of themes or plugins (Reported by steelinside)

6.9.16

  • Fixed: when calling the_excerpt() WP function, social button titles are incorrectly appended to the post text

6.9.12

  • Social Likes library updated to version 3.1.1 (Released 2016/08/19)
  • Fixed: Facebook counter got broken due to API update

6.3.18

  • Fixed: loading JS and CSS files in wrong way (Reported by gaswirth)
  • Fixed: LinkedIn security error (Thanks to ottomek)

6.1.11

  • Fixed message “Undefined offset: 0” appearing when creating new post (Reported by steve82)
  • Fixed incorrect output in RSS feeds
  • Social Likes library updated to version 3.1.0 (Released 10.01.2016)

5.6.8

  • Options are stored in object instead of array
  • Fixed appearance of LiveJournal button for Flat skin
  • Fixed: LinkedIn counters don’t show (because of jQuery’s compatibility mode)

5.5.7

  • Fixed bug with social buttons appearing inside third party recent posts widgets (Reported by rollo3000)
  • Fixed: if sociallikes_customlocale is set to en_US, plugin still uses default locale of WordPress
  • Added Tatar translation (Thanks to Albert Fazli)

5.2.5

  • Added custom LinkedIn button
  • Added new vector icon for the LiveJournal button
  • Fixed bug with rectangular areas appearing under social likes buttons

5.1.26

  • Added button for sharing via E-mail
  • Added social_likes() and get_social_likes() functions for using social likes buttons in WordPress themes
  • Fixed bug with plugin options not getting updated on multilingual sites
  • Social Likes library updated to version 3.0.12 (Released 19.01.2015)

1.11

  • Added “With zeroes” mode to preview
  • Fixed LiveJournal button appearance for all 4 skins
  • Fixed bug with counters disappearing when LiveJournal button is on (Reported by yegorka)
  • Transition to the more optimal way of storing plugin settings
  • Hidden feature: Social Likes buttons now can be added to post excerpts (Requested by johnmontfx, see question 4 in FAQ)

1.10

  • Improved compatibility with WordPress 3.9+
  • Added custom LiveJournal button
  • Fixed bug with getting first image for the Pinterest automatically (Reported by Dilmaghani Graphics Department)
  • Social Likes library updated to version 3.0.4 (Released 13.05.2014)
  • Hidden feature: Shortcode for placing buttons anywhere inside page/post content (See question 3 in FAQ)

1.9

  • Reminder on unsaved plugin settings
  • Social Likes library updated to version 3.0.2
  • Hidden feature: Now it is possible to place buttons before page/post content (See question 1 in FAQ)
  • Hidden feature: Now it is possible to use different language (locale) for plugin than WordPress uses (See question 2 in FAQ)

1.8

  • Fixed bug with interactive preview reset

1.7

  • Translations: English, Russian
  • Improved buttons markup to remove side effects caused by theme styles (Reported by Alexander Sarychev)

1.6

  • Button style customization with 4 skins: Classic, Flat (standard & light) and Birman
  • Icons only mode
  • Option whether to show zero counters or not
  • LiveJournal button removed
  • Social Likes library updated to version 3.0.1
  • Plugin is translation-ready. Any help with translation to your language is appreciated!

1.5

  • Fixed bug with appearance of websites on settings page for English version of WordPress

1.4

  • Option to place first image in the post/page to the Image URL field (required by Pinterest)
  • Russian social network buttons now available for English version of WordPress

1.3

  • Default message text based on the title of page/post being shared (Feedback from Yevgen Timashov)

1.2

  • Smarter appearance of buttons: if post doesn’t contain “more” tag, they will appear both on single post page and on page with multiple posts
  • English and Russian tooltips for share buttons depending on language of current page/post

1.1

  • Commands for adding buttons to existing posts and/or pages

1.0

  • First release