Announcement

Collapse
No announcement yet.

Homepage Carousel / Slider doesn't show up

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Homepage Carousel / Slider doesn't show up

    I'm having issues with homepage slide, I created a module for homepage carousel and I modified html according to the template's pdf guide, but nothing shows up on the homepage! Can anyone help me with this? Any advice?

    <script>
    //Slide JSON format
    /*
    {
    "background_color": "#eceded",
    "background_image": "https://www.kindsesh.com/assets/images/ZodiacalMwPonca5834.jpg",
    "button_link": "https://www.kindsesh.com/",
    "button_text": "Shop now",
    "details": "Bla bla",
    "heading": "<small>2020</small> Premium <span>BlaBla</span>",
    "text_color": "#000000"
    }
    */

    var slides = '[';
    //<!--START: carousel-->
    slides += ''
    //<!--END: carousel-->

    //remove last comma (,)
    slides = slides.substring(0, slides.length - 1);

    slides = slides + ']';
    </script>

  • #2
    I didn't get to much into your script but you do have a JavaScript error in your page due to a missing closing script tag.

    You need to add a closing script tag.

    Code:
    </script>
    before this line

    Code:
    <script type="text/javascript" src="/assets/templates/common-core/lib/flexslider/jquery.flexslider-min.js?vcart=10.3.1"></script>

    Comment

    Working...
    X