Is there a simple way with code (for a beginner with some knowledge of coding) to add an extra button to a slideshow for AVENUE theme?
This is the liquid code for the slideshow.
{%- assign full_width = section.settings.full_width -%}
1 %} data-url="{{ 'script.slideshow.js' | asset_url }}" data-slideshow-type="image" data-carousel-type="slideshow" {% endif %} id="slideshow-{{ section.id }}" class="{% if section.settings.enable_padding %}margins-bottom-section {% endif %}{% if section.blocks.size > 1 %}glider-enabled {% endif %}{% if settings.animation_enable %}animate-section-div {% endif %}clearfix"><div{% if section.blocks.size > 1 %} id=“glider-carousel-{{ section.id }}” data-glider-autoplay=“{{ section.settings.auto_rotate_every | times: 1000 }}” data-glider-autorotate=“{% if section.settings.auto_rotate %}true{% else %}false{% endif %}” class=“glider slideshow”{% endif %}>
{{ 'homepage.onboarding.slide_no_title' | t }}
{{ 'homepage.onboarding.no_body' | t }}
{%- liquid
if section.blocks.size == 0
echo section_onboarding_text
endif
-%}
{% for block in section.blocks %}
{%- liquid
if block.settings.block_img_d != blank or block.settings.block_img_m != blank
assign section_onboarding = false
else
assign section_onboarding = true
endif
-%}
{% if section.blocks.size > 1 %}
{% if section.settings.white_nav %}
{%- assign icon_class = ‘white’ -%}
{% endif %}
{% schema %}
{
“name”: “Slideshow with image”,
“max_blocks”: 4,
“settings”: [
{
“type”: “paragraph”,
“content”: “To add text, try the ‘Slideshow with Text’ section. Learn more”
},
{
“type”: “checkbox”,
“id”: “auto_rotate”,
“label”: “Auto-rotate slides”,
“default”: false
},
{
“type”: “range”,
“id”: “auto_rotate_every”,
“min”: 5,
“max”: 10,
“step”: 1,
“unit”: “sec”,
“label”: “Change slides every”,
“default”: 5
},
{
“type”: “checkbox”,
“id”: “full_width”,
“label”: “Full width”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “enable_nav”,
“label”: “Enable multi slide navigation”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “white_nav”,
“label”: “White multi slide navigation”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “enable_padding”,
“label”: “Enable bottom padding”,
“default”: false
}
],
“blocks”: [
{
“type”: “slide”,
“name”: “Slide”,
“settings”: [
{
“type”: “header”,
“content”: “Slide”,
“info”: “If you want to add text, consider using the Slideshow with Text section”
},
{
“type”: “url”,
“id”: “link”,
“label”: “Link”
},
{
“type”: “header”,
“content”: “Background”
},
{
“type”: “image_picker”,
“id”: “block_img_d”,
“label”: “Desktop image”,
“info”: “1900px width recommended”
},
{
“type”: “image_picker”,
“id”: “block_img_m”,
“label”: “Mobile image”,
“info”: “600px width recommended”
}
]
}
],
“presets”: [
{
“name”: “Slideshow with image”,
“category”: “Image”,
“blocks”: [
{
“type”: “slide”
},
{
“type”: “slide”
},
{
“type”: “slide”
}
]
}
]
}
{% endschema %}
Thanks