#

Slider Icon

Hero Slider

Create stunning hero sliders that captivate visitors and showcase your most important content.

DOWNLOAD

Customize each slide with images, text, buttons, and links to match your brand perfectly. Manage multiple slides effortlessly and keep your homepage content fresh and engaging.

# Prerequisites

# Step-by-Step Setup Guide

These steps will guide you through the process of installing the Hero Slider Module and getting it live on your page.

  1. Navigate to Modules
  • In your CMS dashboard, click Modules in the left navigation menu
  • Click the Add Module button
  1. Add the module
  • Give your hero slider module a name
  • Select from the three options:
    • Datatable: Creates a simple data table structure
    • Module: Builds a custom module from scratch
    • Package: Installs a pre-built module from a zip file
  • For the purpose of this tutorial, select Package: and use this zip file .
  • Click Submit.
  1. Navigate to web files > content and create a new code file in your desired location.

  2. Add the hero slider HTML code using the example template provided below.

hero-slider.tpl
[repeater id="" limit="0,1"]
  <div class="text-center bg-primary py-2">
    <div class="container">
      [is_set value="{{alert_link}}"]
        [cond type="is" subject="{{alert_link_external}}" value="1"]
          <a href="{{alert_link}}" class="text-white" target="_blank" rel="noopener noreferrer">{{event_title}}</a>
        [/cond]
        [cond type="is_not" subject="{{alert_link_external}}" value="1"]
          <a href="{{alert_link}}" class="text-white">{{event_title}}</a>
        [/cond]
      [/is_set]
      
      [is_empty value="{{alert_link}}"]
        <span class="text-white">{{event_title}}</span>
      [/is_empty]
    </div>
  </div>
[/repeater]
  1. Open your homepage index.stml or the desired page where you want to add the hero slider.

  2. Insert your hero-slider file into the page.

  1. Click Publish.

  2. Go to your website and refresh the page to see your hero slider in action.

# Support

Support for Hero Slider Module is handled directly through Solodev's global help desk. For more information regarding support queries, go to www.solodev.com.