Slides do not appear in tablet and mobile view of Blocksy theme
-
Hi,
I integrated Smart Slider 3 today in a WP site which uses the Blocksy theme. After intensive research I think that I found the issue (bug).
The problem is, that the slides are only shown in the desktop view (= min-width: 1000px), but are not shown in the tablet and mobile views (which is a combined view concerning header configuration in Blocksy).
Blocksy uses the following code construct to decide between the desktop and the tablet+mobile views:
<header id="header" class="ct-header" data-id="OuddJ6" itemscope="" itemtype="https://schema.org/WPHeader"> <div data-device="desktop"> ... [Slider Code in between] ... </div> <div data-device="mobile"> ... [Slider Code in between] ... </div> </div> </header>
The issue seems to be, that your JavaScript code only updates the related code in the “<div data-device=”desktop”>” path, but ignores the “<div data-device=”mobile”>” path – which causes the slides only to be shown in the desktop view (i.e. viewport min-width: 1000px).
I can easily repro this: if I resize the viewport to < 1000px, set the “<div data-device=”mobile”>”-path to display:none and deactivate the display:block for the “<div data-device=”desktop”>”-path, the slider and it’s slides are displayed correctly.
Another indication for this is, that if I integrate the slider into a page (using the shortcode), that slider is displayed in any viewport size.
So it seems to be related to the (probably) Blocksy-specific implementation of the header separation in “desktop” and “mobile”, and your CSS selectors for your JavaScript code not being able to handle this, unfortunately.
There could be another reason for the problem as well, of course. Whatever it is, I really hope you can fix it really quickly, because I have to deliver this website by end of this week.
Thanks & best regards
Franz KohlThe page I need help with: [log in to see the link]
- The topic ‘Slides do not appear in tablet and mobile view of Blocksy theme’ is closed to new replies.