Only show social share icons that are defined in social_sharing widget block

SOLVE
dwg-andy
Participant

i'm trying to use the social_sharing block syntax (http://designers.hubspot.com/docs/hubl/hubl-supported-modules#social-sharing) to display custom social share icons. It works for the 3 that I have defined, however it still renders default google+, pinterest, and email icons whereas I don't want them included at all. Is there any way to say not to include those that aren't not strictly defined?

{% widget_block social_sharing "my_social_sharing" label='Social Sharing', use_page_url=True, overrideable=True %}

{% widget_attribute "twitter" is_json=True %}{"custom_link_format": "", "enabled": true, "network": "twitter", "img_src": "https://cdn2.hubspot.net/hubfs/4107005/HOMEPEST-assets/img/twitter.png"}{% end_widget_attribute %}
{% widget_attribute "linkedin" is_json=True %}{"custom_link_format": "", "enabled": true, "network": "linkedin", "img_src": "https://cdn2.hubspot.net/hubfs/4107005/HOMEPEST-assets/img/linkedin.png"}{% end_widget_attribute %}
{% widget_attribute "facebook" is_json=True %}{"custom_link_format": "", "enabled": true, "network": "facebook", "img_src": "https://cdn2.hubspot.net/hubfs/4107005/HOMEPEST-assets/img/facebook.png"}{% end_widget_attribute %}

{% end_widget_block %}
0 Upvotes
1 Accepted solution

Accepted Solutions
benvanlooy
Solution
Top Contributor | Gold Partner

that's odd..

 

maybe you should add them, but change the variable "enabled" to "false" ?

 

enabled": false

View solution in original post

3 Replies 3
benvanlooy
Solution
Top Contributor | Gold Partner

that's odd..

 

maybe you should add them, but change the variable "enabled" to "false" ?

 

enabled": false

View solution in original post

dwg-andy
Participant

that works.  thanks!

0 Upvotes
benvanlooy
Top Contributor | Gold Partner

welcome 🙂

0 Upvotes