On product pages (any product) social links do not < target=“_blank”> to open in new tab. I’m using the Parallex theme, and while the social-icons.liquid all contain that target, I think the issue maybe here? social-buttons.liquid
The code is as below, and I tried inserting that (target=“_blank”) code in the brackets, but to no avail.
{% capture current_url %}{% if social-buttons == ‘article’ %}{{ shop.url }}{{ article.url }}{% else %}{{ canonical_url }}{% endif %}{% endcapture %}
{% capture buttons %}
-
{% capture title %}{% if social-buttons == 'article' %}{{ article.title | strip_html }}{% else %}{{ product.title | strip_html }}{% endif %}{% endcapture %}
{% capture twitter_name %}{{ settings.twitter_link | split: 'twitter.com/' | last }}{% endcapture %}
- {{ 'layout.social_sharing.title' | t }}:
- {% if social-buttons == 'article' %}
- {% else %}
- {% endif %}
{% if social-buttons == ‘article’ and section.settings.display_social_buttons %}
{{ buttons }}
{% elsif social-buttons == ‘product’ and section.settings.display_social_buttons %}
{{ buttons }}
{% endif %}