CMS Development

Jools619
参加者

Social Sharing module - customising the twitter messege?

解決

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 いいね!
1件の承認済みベストアンサー
DaniellePeters
解決策
トップ投稿者

Social Sharing module - customising the twitter messege?

解決

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

 

元の投稿で解決策を見る

7件の返信
DaniellePeters
解決策
トップ投稿者

Social Sharing module - customising the twitter messege?

解決

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
参加者

Social Sharing module - customising the twitter messege?

解決

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 いいね!
Aakar
キーアドバイザー

Social Sharing module - customising the twitter messege?

解決

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 いいね!
LizBW
参加者

Social Sharing module - customising the twitter messege?

解決

Thanks, I will give that a try as well!

0 いいね!
Aakar
キーアドバイザー

Social Sharing module - customising the twitter messege?

解決

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 いいね!
alysawax
参加者 | Diamond Partner
参加者 | Diamond Partner

Social Sharing module - customising the twitter messege?

解決

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 いいね!
Jools619
参加者

Social Sharing module - customising the twitter messege?

解決

Great Thanks Danielle, I'll try this.

 

It looks exactly what I need 🙂

0 いいね!