Hi @Carlos6
Thank you for the video! I am on the Palo Alto theme and have quasi-gotten this to work. Both the desktop and mobile images link to the page that I would like, but for some reason the mobile section shows both the desktop and mobile version (vertically with the mobile on top). Iāve tried moving the , adding the code to both the desktop image and mobile image sections and I cannot find a way for the link to work without also having the mobile image issue. Are you able to see what Iām doing wrong? We would really appreciate your advice! Thank you, Kristin
{%- assign transition = section.settings.transition -%}
{%- assign autoplay = section.settings.autoplay -%}
{%- assign duration = section.settings.duration | times: 1000 -%}
{%- assign content_alignment = section.settings.content_alignment -%}
{%- assign slide_height = section.settings.slide_height -%}
{%- assign slides_count = section.blocks.size -%}
{%- if section.blocks.size > 0 -%}
{%- if section.settings.show_nav_arrows and section.blocks.size > 1 -%}
{%- endif -%}
{%- for block in section.blocks -%}
{%- assign overlayOpacity = block.settings.overlay_opacity | times: 0.01 -%}
{%- if block.settings.slide_btn_link != blank -%}
{%- assign btn_link = block.settings.slide_btn_link -%}
{%- else -%}
{%- assign btn_link = "#" -%}
{%- endif -%}
{%- if block.settings.slide_btn_link_2 != blank -%}
{%- assign btn_link_2 = block.settings.slide_btn_link_2 -%}
{%- else -%}
{%- assign btn_link_2 = "#" -%}
{%- endif -%}
{%- if block.settings.slide_btn_text != blank or block.settings.slide_btn_text_2 != blank -%}
{%- endif -%}
{%- if slide_height == 'original-height' -%}
{% comment %} Mobile image {% endcomment %}
{%- unless block.settings.image_mobile == blank -%}
{%- assign image = block.settings.image_mobile -%}
{%- assign image_widths = '295,394,590,700,800,1000,1200,1500,1800,2000,2400' -%}
{%- include 'theme-rias' -%}
{%- endunless -%}
{% comment %} Desktop image {% endcomment %}
{%- unless block.settings.image == blank -%}
{%- assign image = block.settings.image -%}
{%- assign image_widths = '295,394,590,700,800,1000,1200,1500,1800,2000,2400' -%}
{%- include 'theme-rias' -%}
{% if block.settings.image_link !=blank %}
{% endif %}
{%- else -%}
{{- 'lifestyle-1' | placeholder_svg_tag: 'placeholder-svg-filled' -}}
{%- endunless -%}
{%- else -%}
{% comment %} Mobile image {% endcomment %}
{%- unless block.settings.image_mobile == blank -%}
{%- endunless -%}
{% comment %} Desktop image {% endcomment %}
{%- unless block.settings.image == blank -%}
{%- else -%}
{{- 'lifestyle-1' | placeholder_svg_tag: 'placeholder-svg-filled' -}}
{%- endunless -%}
{%- endif -%}
{%- if block.settings.slide_heading != blank -%}
# {{ block.settings.slide_heading | escape }}
{%- endif -%}
{%- if block.settings.slide_subheading != blank -%}
## {{ block.settings.slide_subheading | escape | newline_to_br }}
{%- endif -%}
{%- if block.settings.slide_btn_text != blank -%}
1 %} tabindex="-1"{% endif %}>{{ block.settings.slide_btn_text | escape }}
{%- endif -%}
{%- if block.settings.slide_btn_text_2 != blank -%}
1 %} tabindex="-1"{% endif %}>{{ block.settings.slide_btn_text_2 | escape }}
{%- endif -%}
{%- if block.settings.video_btn_text != blank -%}
1 %} tabindex="-1"{% endif %} data-play-button>
{{ block.settings.video_btn_text }}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- if section.settings.show_arrow_down -%}
1 %} tabindex="-1"{% endif %}>
{%- include 'icon-arrow-down' -%}
{%- endif -%}
{% schema %}
{
"name": "Slideshow LINK II",
"max_blocks": 10,
"class": "slideshow full-header",
"settings": [
{
"type": "header",
"content": "layout"
},
{
"type": "select",
"id": "slide_height",
"label": "Height",
"default": "one-hundred-height-hero",
"options": [
{
"value": "one-hundred-height-hero",
"label": "Full screen"
},
{
"value": "original-height",
"label": "Original"
},
{
"value": "seven-fifty-height-hero",
"label": "750px"
},
{
"value": "sixty-fifty-height-hero",
"label": "650px"
},
{
"value": "five-fifty-height-hero ",
"label": "550px"
},
{
"value": "four-fifty-height-hero",
"label": "450px"
}
]
},
{
"type": "select",
"id": "content_alignment",
"label": "Content alignment",
"default": "center",
"options": [
{ "value": "left", "label": "Left" },
{ "value": "center", "label": "Center" },
{ "value": "right", "label": "Right" },
{ "value": "bottom-left", "label": "Bottom left" },
{ "value": "bottom-right", "label": "Bottom right" }
]
},
{
"type": "checkbox",
"id": "show_nav_dots",
"label": "Show slide navigation dots",
"default": true
},
{
"type": "checkbox",
"id": "show_nav_arrows",
"label": "Show slide navigation arrows",
"default": true
},
{
"type": "checkbox",
"id": "show_arrow_down",
"label": "Show down arrow",
"default": false
},
{
"type": "header",
"content": "Autoplay"
},
{
"type": "checkbox",
"id": "autoplay",
"label": "Autoplay slideshow",
"default": false
},
{
"type": "range",
"id": "duration",
"min": 2,
"max": 5,
"step": 1,
"unit": "sec",
"label": "Change slides every",
"default": 4
},
{
"type": "select",
"id": "transition",
"label": "Transition style",
"default": "slide",
"options": [
{ "label": "Slide", "value": "slide" },
{ "label": "Fade", "value": "fade" },
{ "label": "Zoom out", "value": "zoom-out" }
]
}
],
"blocks": [
{
"type": "image",
"name": "Slide",
"settings": [
{
"type": "header",
"content": "Image"
},
{
"type": "image_picker",
"id": "image",
"label": "Image",
"info": "2048px width recommended"
},
{
"type": "image_picker",
"id": "image_mobile",
"label": "Mobile image",
"info": "Optional"
},
{
"type": "url",
"id": "image_link",
"label": "Image link"
},
{
"type": "select",
"id": "bg_position",
"label": "Position",
"default": "bg-pos-center-center",
"options": [
{ "label": "Top", "value": "bg-pos-top-center" },
{ "label": "Right", "value": "bg-pos-right-center" },
{ "label": "Center", "value": "bg-pos-center-center" },
{ "label": "Left", "value": "bg-pos-left-center" },
{ "label": "Bottom", "value": "bg-pos-bottom-center" }
]
},
{
"type": "range",
"id": "overlay_opacity",
"label": "Overlay opacity",
"min": 0,
"max": 95,
"step": 5,
"unit": "%",
"default": 20
},
{
"type": "header",
"content": "Text"
},
{
"type": "select",
"id": "text_color",
"label": "Color",
"default": "text-light",
"options": [
{
"value": "text-light",
"label": "Light"
},
{
"value": "text-dark",
"label": "Dark"
}
]
},
{
"type": "text",
"id": "slide_heading",
"label": "Heading",
"default": "Welcome to Palo Alto"
},
{
"type": "range",
"id": "heading_font_size",
"label": "Heading size",
"unit": "px",
"step": 4,
"min": 40,
"max": 64,
"default": 48
},
{
"type": "textarea",
"id": "slide_subheading",
"label": "Subheading",
"default": "This subheading helps you provide some more detail to the title above."
},
{
"type": "range",
"id": "text_font_size",
"label": "Text size",
"unit": "px",
"step": 2,
"min": 16,
"max": 28,
"default": 20
},
{
"type": "header",
"content": "Buttons"
},
{
"type": "text",
"id": "slide_btn_text",
"label": "Button text",
"default": "Welcome"
},
{
"type": "url",
"id": "slide_btn_link",
"label": "Button URL"
},
{
"type": "select",
"id": "slide_btn_style",
"label": "Button style",
"default": "primary",
"options": [
{ "label": "Primary", "value": "primary" },
{ "label": "Secondary", "value": "secondary" }
]
},
{
"type": "text",
"id": "slide_btn_text_2",
"label": "Second button text"
},
{
"type": "url",
"id": "slide_btn_link_2",
"label": "Second button URL"
},
{
"type": "select",
"id": "slide_btn_style_2",
"label": "Second button style",
"default": "secondary",
"options": [
{ "label": "Primary", "value": "primary" },
{ "label": "Secondary", "value": "secondary" }
]
},
{
"type": "text",
"id": "video_btn_text",
"label": "Video button text",
"default": "Watch the Video"
},
{
"type": "video_url",
"id": "video_btn_link",
"label": "Video URL",
"accept": [
"youtube",
"vimeo"
],
"default": "https://www.youtube.com/watch?v=_9VUPq3SxOc"
}
]
}
],
"presets": [
{
"name": "Slideshow LINK II",
"category": "Image",
"blocks": [
{
"type": "image"
},
{
"type": "image"
}
]
}
]
}
{% endschema %}