CMS Development

dwg-andy
Participant

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

SOLVE

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
benvanlooy
Solution
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

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

SOLVE

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 | Platinum Partner
Top Contributor | Platinum Partner

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

SOLVE

that's odd..

 

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

 

enabled": false
dwg-andy
Participant

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

SOLVE

that works.  thanks!

0 Upvotes
benvanlooy
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

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

SOLVE

welcome 🙂

0 Upvotes