Plugin: Social Locker for WordPress
Version: 1.2.8+
Purpose: Hiding counters of social buttons for Social Locker.

Since v.1.2.8 Social Locker for WordPress allows you to hide the counters of social buttons. But the such functionality is only available on the core level. It means that the admin interface doesn’t provide an option for hiding the counters.

To hide the counters:

1. Open to edit the file placed at:
<root>/wp-content/plugins/sociallocker/assets/js/jquery.op.sociallocker.min.js

2. Find a block containing a theme name for that you want to hide the counters.
For example for Starter theme:

$.onepress.presets['ui-social-locker-starter'] = {
    buttons: {
        layout: 'horizontal',
        counter: true
    },
    effects: {
        flip: false
    }
};

3. Set False value for the Counter option:
counter: false

The result:

$.onepress.presets['ui-social-locker-starter'] = {
    buttons: {
        layout: 'horizontal',
        counter: false
    },
    effects: {
        flip: false
    }
};

4. That’s all! Save changes and enjoy.

Leave a Reply

Your email address will not be published. Required fields are marked *