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
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 %}
Showing 3 reactions
Sign in with
Tim Wayne
Certified Architect
Certified Expert
Tim Wayne
Certified Architect
Certified Expert