CMS Development

Jools619
Participant

Social Sharing module - customising the twitter messege?

SOLVE

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

0 Upvotes
1 Accepted solution
DaniellePeters
Solution
Top Contributor

Social Sharing module - customising the twitter messege?

SOLVE

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

 

View solution in original post

7 Replies 7
DaniellePeters
Solution
Top Contributor

Social Sharing module - customising the twitter messege?

SOLVE

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

 

LizBW
Participant

Social Sharing module - customising the twitter messege?

SOLVE

Hi, Danielle - I am trying to use these instructions to get the tweets to population with the headlines of the blog posts, but I'm not having any luck. I'm not sure what to put in place of "content.name|striptags" to accomplish it. Whatever I have tried, the tweet still populates with only the URL. 

0 Upvotes
Aakar
Key Advisor

Social Sharing module - customising the twitter messege?

SOLVE

Hi @LizBW 

 

@DaniellePeters method works. However, you also need to update the social sharing module (not the social sharing URL). You need to add the following code which is missing in the social sharing module.

 

{{content.name|striptags}}

Thanks. 

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

Social Sharing module - customising the twitter messege?

SOLVE

Thanks, I will give that a try as well!

0 Upvotes
Aakar
Key Advisor

Social Sharing module - customising the twitter messege?

SOLVE

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
0 Upvotes
alysawax
Participant | Diamond Partner
Participant | Diamond Partner

Social Sharing module - customising the twitter messege?

SOLVE

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!

0 Upvotes
Jools619
Participant

Social Sharing module - customising the twitter messege?

SOLVE

Great Thanks Danielle, I'll try this.

 

It looks exactly what I need 🙂

0 Upvotes