Open external links in a new tab - Avenue theme 4.1.0

Topic summary

A Shopify store owner using the Avenue theme 4.1.0 needs external links in their logo list section to open in new tabs instead of the same window, which currently redirects customers away from their store.

The Problem:

  • Partner site links in the logo list open in the same tab
  • Standard documentation references files (theme.js, theme.js.liquid, custom.js) that don’t exist in Avenue theme
  • User suspects the solution lies in “sections-logo-list.liquid” but doesn’t know what to modify

Attempted Solution:

  • Another user (Avi_choudhary) provided replacement code for the sections-logo-list.liquid file
  • The code appears to be the schema configuration for the logo list section

Current Status:

  • The suggested code replacement did not resolve the issue
  • External links still open in the same window
  • The discussion remains unresolved with no working solution identified

The core technical challenge involves modifying Liquid template code to add target="_blank" attributes to links, but the specific implementation for Avenue theme’s logo list section hasn’t been successfully identified.

Summarized with AI on November 22. AI used: claude-sonnet-4-5-20250929.

In my logo list I have set up links to all my partner sights. These all open in the same tab leading my customers away from my store. I want them to open in a new tab but all the help documents say to edit the code in the assets directory theme.js theme.js.liquid custom.js

These don’t exist in the Avenue theme. I believe it is located in “sections-logo-list.liquid” file but I don’t know what I need to change. Any help would be greatly appreciated.

{%- liquid
  assign full_width = section.settings.full_width
  if section.blocks.size == 0 and section.settings.title == blank and section.settings.sub_title == blank
  	assign section_onboarding = true
  else
  	assign section_onboarding = false
  endif
-%}

{% schema %}
  {
    "name": "t:sections.logo_list.name",
    "settings": [
      {
        "type": "text",
        "id": "title",
        "label": "t:sections.heading.label",
		"default": "Logo list"
      },
      {
        "type": "text",
        "id": "sub_title",
        "label": "t:sections.subheading.label",
		"default": "Highlight brands, certifications or sponsors"
      },
      {
        "type": "select",
        "id": "text_alignment",
        "label": "t:sections.alignment.label",
        "default": "text-center",
        "options": [
          {
            "value": "text-left",
            "label": "t:sections.alignment.left"
          },
          {
            "value": "text-center",
            "label": "t:sections.alignment.center"
          },
          {
            "value": "text-right",
           "label": "t:sections.alignment.right"
          }
        ]
      },
      {
        "type": "checkbox",
        "id": "vertical_content_alignment",
        "label": "t:sections.vertical_centering.label",
        "default": true
      },
	  {
        "type": "select",
        "id": "include_color",
        "label": "t:sections.background_color.label",
        "default": "color-none",
        "options": [
          {
            "value": "color-primary",
            "label": "t:sections.background_color.primary"
          },
          {
            "value": "color-secondary",
            "label": "t:sections.background_color.secondary"
          },
          {
            "value": "color-none",
            "label": "t:sections.background_color.none"
          }
        ]
      },
      {
       "type": "checkbox",
       "id": "full_width",
       "label": "t:sections.full_width_background.label",
       "default": true
      }
    ],
    "blocks": [
      {
        "type": "image",
        "name": "t:sections.logo.name",
		"limit": 6,
        "settings": [	  
          {
            "type": "image_picker",
            "id": "block_img",
            "label": "t:sections.image.label"
          },
          {
            "type": "url",
            "id": "link",
            "label": "t:sections.link.label"
          },
          {
            "type": "range",
            "id": "logo_max_width",
            "min": 40,
            "max": 220,
            "step": 10,
            "unit": "px",
            "label": "t:sections.max_logo.label",
            "default": 140
          }
        ]
      }
    ],
    "presets": [
      {
        "name": "t:sections.logo_list.name",
        "blocks" : [
          {
            "type": "image"
          },
          {
            "type": "image"
          },
          {
            "type": "image"
          },
          {
            "type": "image"
          },
          {
            "type": "image"
          },
          {
            "type": "image"
          }
        ]
      }
    ]
  }
{% endschema %}

replace your code with this

{%- liquid
  assign full_width = section.settings.full_width
  if section.blocks.size == 0 and section.settings.title == blank and section.settings.sub_title == blank
  	assign section_onboarding = true
  else
  	assign section_onboarding = false
  endif
-%}

{% schema %}
  {
    "name": "t:sections.logo_list.name",
    "settings": [
      {
        "type": "text",
        "id": "title",
        "label": "t:sections.heading.label",
		"default": "Logo list"
      },
      {
        "type": "text",
        "id": "sub_title",
        "label": "t:sections.subheading.label",
		"default": "Highlight brands, certifications or sponsors"
      },
      {
        "type": "select",
        "id": "text_alignment",
        "label": "t:sections.alignment.label",
        "default": "text-center",
        "options": [
          {
            "value": "text-left",
            "label": "t:sections.alignment.left"
          },
          {
            "value": "text-center",
            "label": "t:sections.alignment.center"
          },
          {
            "value": "text-right",
           "label": "t:sections.alignment.right"
          }
        ]
      },
      {
        "type": "checkbox",
        "id": "vertical_content_alignment",
        "label": "t:sections.vertical_centering.label",
        "default": true
      },
	  {
        "type": "select",
        "id": "include_color",
        "label": "t:sections.background_color.label",
        "default": "color-none",
        "options": [
          {
            "value": "color-primary",
            "label": "t:sections.background_color.primary"
          },
          {
            "value": "color-secondary",
            "label": "t:sections.background_color.secondary"
          },
          {
            "value": "color-none",
            "label": "t:sections.background_color.none"
          }
        ]
      },
      {
       "type": "checkbox",
       "id": "full_width",
       "label": "t:sections.full_width_background.label",
       "default": true
      }
    ],
    "blocks": [
      {
        "type": "image",
        "name": "t:sections.logo.name",
		"limit": 6,
        "settings": [	  
          {
            "type": "image_picker",
            "id": "block_img",
            "label": "t:sections.image.label"
          },
          {
            "type": "url",
            "id": "link",
            "label": "t:sections.link.label"
          },
          {
            "type": "range",
            "id": "logo_max_width",
            "min": 40,
            "max": 220,
            "step": 10,
            "unit": "px",
            "label": "t:sections.max_logo.label",
            "default": 140
          }
        ]
      }
    ],
    "presets": [
      {
        "name": "t:sections.logo_list.name",
        "blocks" : [
          {
            "type": "image"
          },
          {
            "type": "image"
          },
          {
            "type": "image"
          },
          {
            "type": "image"
          },
          {
            "type": "image"
          },
          {
            "type": "image"
          }
        ]
      }
    ]
  }
{% endschema %}

I tried this before with no change. external links are still opening in the same window.