CMS Development

evanzhang
Participant

Custom Social Media icons to replace Share This module icons

SOLVE

I want to replace the Share This module icons for our blog. I've located the code in our template, and changed the image links.

{% widget_block social_sharing "my_social_sharing" label='Social Sharing', use_page_url=True, overrideable=True  %}
                    {% widget_attribute "pinterest" is_json=True %}{"custom_link_format": "", "pinterest_media": "http://cdn1.hubspot.com/hub/158015/305390_10100548508246879_837195_59275782_6882128_n.jpg", "enabled": false, "network": "pinterest", "img_src": "https://static.hubspot.com/final/img/common/icons/social/pinterest-24x24.png"}{% end_widget_attribute %}
                    {% widget_attribute "twitter" is_json=True %}{"custom_link_format": "", "enabled": true, "network": "twitter", "img_src": "https://cdn2.hubspot.net/hubfs/2751942/Emails/Signatures/Social-Media-Icons/Twitter.png"}{% end_widget_attribute %}
                    {% widget_attribute "google_plus" is_json=True %}{"custom_link_format": "", "enabled": false, "network": "google_plus", "img_src": "https://static.hubspot.com/final/img/common/icons/social/googleplus-24x24.png"}{% end_widget_attribute %}
                    {% widget_attribute "linkedin" is_json=True %}{"custom_link_format": "", "enabled": true, "network": "linkedin", "img_src": "https://cdn2.hubspot.net/hubfs/2751942/Emails/Signatures/Social-Media-Icons/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/2751942/Emails/Signatures/Social-Media-Icons/Facebook.png"}{% end_widget_attribute %}
                    {% widget_attribute "email" is_json=True %}{"custom_link_format": "", "enabled": true, "network": "email", "img_src": "https://cdn2.hubspot.net/hubfs/2751942/Emails/Signatures/Social-Media-Icons/Vettery%20Icons-15-625049-edited.png"}{% end_widget_attribute %}
                {% end_widget_block %}

 I'm seeing the new images populate on new blog posts that are created now, but the old published blog posts still have the default images. Is it possible to change those retroactively? Thanks!

 

0 Upvotes
1 Accepted solution
Jsum
Solution
Key Advisor

Custom Social Media icons to replace Share This module icons

SOLVE

@evanzhang,

 

If you changed them in your template then they should change across all of your posts. If you not you could try adding a new blog module to the template, copying and pasting the code from bot the listing and post section to the new blog module, check for any custom classes on the module or other cusomized code in the options section, then delete the old one and publish. You can test it before you delete the old one by publishing the page and looking at your blog posts for the new section (there will be two because you have 2 blog modules and they should be identical except for the share icons.).

 

The reason for this is it is possible that the content of your current blog module has been "cached" on the page level do to a glitch. Changing out the module would refresh this. This has happened to me before but it is usually only an issue after you have added or changed the content of a module on the page level which isn't the case here. I can't think of another reason this would be an issue though as long as you are actually making the change on the template level.

View solution in original post

0 Upvotes
1 Reply 1
Jsum
Solution
Key Advisor

Custom Social Media icons to replace Share This module icons

SOLVE

@evanzhang,

 

If you changed them in your template then they should change across all of your posts. If you not you could try adding a new blog module to the template, copying and pasting the code from bot the listing and post section to the new blog module, check for any custom classes on the module or other cusomized code in the options section, then delete the old one and publish. You can test it before you delete the old one by publishing the page and looking at your blog posts for the new section (there will be two because you have 2 blog modules and they should be identical except for the share icons.).

 

The reason for this is it is possible that the content of your current blog module has been "cached" on the page level do to a glitch. Changing out the module would refresh this. This has happened to me before but it is usually only an issue after you have added or changed the content of a module on the page level which isn't the case here. I can't think of another reason this would be an issue though as long as you are actually making the change on the template level.

0 Upvotes