how to open the links of Linkedin, Twitter and Instagram in a new tab?
website: 10xfuel.com
Thx!
A user asks how to make social media links (LinkedIn, Twitter, Instagram) in the Dawn theme footer open in new tabs.
Proposed Solution:
target="_blank" attribute to linksRefinement Suggested:
A follow-up comment recommends adding an IF conditional check to specifically target only social media menu items, preventing the modification from affecting all footer links. This approach uses {% if block.settings.menu == 'social' %} to isolate the social links.
The discussion provides a working code solution but remains technical, requiring manual theme file editing. No indication whether the original poster implemented or tested the suggestions.
Hello @10xfuel
It’s GemPages support team and glad to support you today.
I would like to give you a solution to support you.
Go to Online Store → Theme → Edit code.
Open your Sections/footer.liquid theme file.
Search with keyword: ‘list-menu__item–link’
There is 1 result: line 69
Hope my solution can work and support you!
Kind & Best regards!
GemPages Support Team.
I’d take that a step further and add in a “IF” check as you might have more than one list-menu__item–link menu in the footer. For me I was just targeting the social items from a menu. Hence the {% if block.settings.menu == ‘social’ %}
{%- for link in block.settings.menu.links -%}
- {{ link.title }}
{%- endfor -%}