CMS Development

KelsoConsulting
Miembro | Partner
Miembro | Partner

Editing HubL for post listing to open links in new window

Is there anyway to edit the HubL so that for the post listings they open in a new window?

0 Me gusta
1 Respuesta 1
JasonRosa
HubSpot Employee
HubSpot Employee

Editing HubL for post listing to open links in new window

Hey @KelsoConsulting yes you should be able to do that. Exactly how would depend on your specific blog template. In general you should be able to get to the code of your blog listing template by following along with the instructions here. There is a good explanation about what the different HubL code does in the blog listing here. In that example code on line 2 you'd simple add target="_blank" to the a tag so it would look something like: 

<h2><a href="{{content.absolute_url}}" target="_blank">{{ content.name }}</a></h2>

 

 

0 Me gusta