Centering slidercaption

1 reply · opened Oct 5, 2016

WwilliamshenOct 5, 2016

Hi, I have created a static slider. Inside the static slider is a slidercaption.

However, when I resize the page or view it on different devices, the slidercaption will not stay centered in the middle of the slider.

Also, if I were to use a canvas slider, is there any way to disable the user from clicking on a slide, and dragging it to the left or right (when there is one slide). I would appreciate any help!

Link

SSemicolon WebSTAFFOct 6, 2016

Hello,

  1. We Really Apologize about the Inconvenience regarding this. There was a minor bug with the Code. Please find the following code in the js/functions.js File:
if( swiperSlider != '' ) { swiperSlider.update( true ); }

and replace it with:

if( swiperSlider ) { swiperSlider.update( true ); }

This should definitely fix the issue.

  1. Please find the following code in the js/functions.js File inside the sliderRun: function() Function Block:
grabCursor: elementGrabCursor,
pagination: elementPagination,

and replace it with:

grabCursor: elementGrabCursor,
simulateTouch: elementGrabCursor,
pagination: elementPagination,

Then, add the data-grab="false" Attribute to the #slider Container.

This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard