I went through the configuration of ShareThis module but couldn't find any way to hide/disable services which aren't required. In my case I am using the ShareThis button under "Selected Service"as per my site design. This button displays the list of all the available services but what if I just wanted to display few required services like Facebook, Twitter, LinkedIn, Youtube & Whatsapp. Selected Service

Required Services


Instead of using ShareThis module which is too difficult to modify. I used AddToAny module which provides me with only the required services. To provide it a layout I created a twig file for the services block and add whatever HTML & Classes I wanted to use.

I displayed the services in a modal window.What I wrote in twig file:

{% block content %}
<div aria-labelledby="myModalLabel" class="modal fade" id="modal-external-link" role="dialog" tabindex="-1">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header"><button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Share
<div class="modal-body">  {{ content }} </div>
{% endblock %}

Before Somebody asks me why I didn't do it with ShareThis. I didn't because AddToAny is lightweight.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.