Skip to main content

Is there a way to sneak target="_parent" into the Featured Content Slider link?

Hi there!

Right now, the images in a Featured Content Slider link via target="_self".  Is there a way to change this to target="_parent" ?

(I'm hoping I can avoid altering the javascript for the slider, since javascript is not really my cup of tea, but I'll go there if I have to.)

Thanks!

Tim

Official response from

Hi Tim, to edit the links for the slider you would need to make the modifications to the liquid/HTML in the _features.html file located under Websites > Theme > _features.html. 

For example:

{% for feature in page.features %}

<div>

<a href="{{ feature.page.url }}" target="_parent">

<img src="{{ feature.image_url }}" height="{{ feature.image_height }}" width="{{ feature.image_width }}"/>

</a>

</div>

{% endfor %}

 

To edit a specific slide, you want to target the forloop # with liquid. Like:  

{% if forloop.index == 1 %}

content

{% elsif forloop.index == 2 %}

content

{%endif %}

Share this post

Showing 3 reactions

Please check your e-mail for a link to activate your account.