Social Sharing module - customising the twitter messege?

SOLVE
Occasional Contributor

Hi

 

I have edited the social sharing module.

 

When I click the twitter icon, I get the correct pop up but the content is just the blog url. I am wondering if I can add some extra information such as:

 

Blog title shared by @companyname then the blog url

 

So it would look something like:

Check out our latest blog! via @CompanyLTD  https://blog.company/check-out-our-latest-blog/

Just wondering if this is possible?

 

Thanks

Jools

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Top Contributor

Hey there! You can customize this in the module itself. Assuming this is in a blog sidebar, you'll need to go into the blog template to make the change. Here is what your options will look like

https://knowledge.hubspot.com/articles/kcs_article/cos-general/use-default-modules-in-your-template#...

 

You'd want to adjust the default link to look something like this

 

https://twitter.com/intent/tweet?original_referer={{ social_link_url }}&url={{ social_link_url }}&source=tweetbutton&text={{content.name|striptags}} via @CompanyLTD 

 

 

The "text" param is the important thing you'll want to change. The page url will be added automatically so you shouldn't need to worry about that.

 

Here's an overview of the kind of variables you can include

https://designers.hubspot.com/docs/hubl/hubl-supported-variables

 

4 Replies 4
Top Contributor

Hey there! You can customize this in the module itself. Assuming this is in a blog sidebar, you'll need to go into the blog template to make the change. Here is what your options will look like

https://knowledge.hubspot.com/articles/kcs_article/cos-general/use-default-modules-in-your-template#...

 

You'd want to adjust the default link to look something like this

 

https://twitter.com/intent/tweet?original_referer={{ social_link_url }}&url={{ social_link_url }}&source=tweetbutton&text={{content.name|striptags}} via @CompanyLTD 

 

 

The "text" param is the important thing you'll want to change. The page url will be added automatically so you shouldn't need to worry about that.

 

Here's an overview of the kind of variables you can include

https://designers.hubspot.com/docs/hubl/hubl-supported-variables

 

Occasional Contributor

Great Thanks Danielle, I'll try this.

 

It looks exactly what I need Smiley Happy

Reply
0 Upvotes
New Contributor

I'm not seeing anything about customizing the FB or LI social share message. Is this possible? I was hoping we could dev it as any other custom module with the default pulling the page info - and the option to customize if you choose -  but this doesn't seem to be the case!

 

Any insight is appreciated!

 

Thanks!

Reply
0 Upvotes
Highlighted
Esteemed Contributor

Thanks, @DaniellePeters 

I've been looking for a solution.

 

What I realized is, HubSpot default social sharing module is missing this part

 

{{content.name|striptags}}

 

It worked.

 

Thanks. 

Aakar Anil
Marketing Technologist
aakar.me | @aakarpost | in/aakarpost
Reply
0 Upvotes