Shop Slider Un-Usable on Mobile

The Shop Slider is great, it shows off the products nicely and is responsive.

HOWEVER there is a serious problem. On touch enabled devices, the tap event does not open any of the links within the carousel.

THIS HAPPENS EVEN IN YOUR LIVE SHOP THEME PREVIEW. So no need for me to send you a link to see the problem in action.

Click works file on desktop, and resizing the browser window to mobile dimensions there is no change. But access the page on a touch screen device, and none of the links open when tapped. The overlay element with link icon will show and hide, but the link will not open. The user can long-tap to open a context menu and open the link in a new window, but this is not acceptable.

Any chance of a quickfix to this before a new release of the theme is put together? I see there is a touch event that handles the toggle:
ontouchstart="this.classList.toggle('hover');"

Is there any way to hijack this event to trigger a click on the link within this div? I tried  ontouchstart="this.find(\'a\').click();" and ontouchstart="this.find(\'a\').trigger(\'click\');" but this doesn't work.

Comments

  • Solved!

    Made the following changes in theme-shortcodes.php
    • Removed the code to add the 'mask'  (<div class="mask"></div>)
    • Removed the code to add the slide-up icons (<div class="image_links"> etc </div>)
    • Removed the ontouchstart listener on div.image_frame
    • Changed the code for each <a> element in the product details to add a touch listener to trigger a click:
      $output .= '<a href="'. get_the_permalink() .'" ontouchstart="this.click();">';
    This is a simple work-around hacked together by a n00b. I'm sure your boffins can put something more solid in place.
  • Thanks for explanation but we do not recommend to modify theme files because after theme update everything will be overwritten. But we really appreciate what you described above! :)
  • I absolutely agree with you about not modifying theme files, but in this case it's necessary to get the slider working on Mobile in the short term.

    Do you intend to solve and fix this issue in a future release?
  • We understand you and this will be fixed with next version.

    BTW On ipads or other devices than iphone everything works fine. Only on iphone it does not work because of hover action on click and all hover actions on iphones must be removed. We`ll do it with next update.

    Thanks for understanding!
  • Just FYI seen this on iPhone and also Android mobile handsets.

    Look forward to the update, and thanks for being proactive. 

    Is it possible I could get the list of affected files when this particular issue is fixed in the next release? Since I've already modified the core for a couple of other tweaks, I need to be careful about regression issues when I update.
  • List of modified files we always leave on http://themeforest.net/item/betheme-responsive-multipurpose-wordpress-theme/7758048 in "Updates & Changelog" section but we always recommend to update all files because sometimes we can miss files that were also updated. Since we got such many files and long lists of updates it is very hard to control all updated files. And also this is the main reason why we do not recommend to modify theme files.

    Thanks for understanding!
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.