• I can’t seem to get scheduled sections to appear/disappear on mobile. It works fine on desktop but not on mobile. There was a post about this on the Elementor facebook Group but Zulfikar’s responses seem to have been deleted and he doesn’t seem to be in the group anymore.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Scheduled content is broken on mobile, especially on Apple products.

    I’m currently having to patch this up for a client, will post any updates here.

    Found a fix!
    In the file:
    /var/www/html/mbc_hunterdontechsupport_com/wp-content/plugins/granular-controls-for-elementor/modules/scheduled-content/module.php

    Change line 121 and 122 to the following:

    var startDate = new Date(settings.start.replace(‘ ‘, ‘T’));
    var endDate = new Date(settings.end.replace(‘ ‘, ‘T’));
    The iOS bug is due to the date string not being in a format specified to work with new Date on iOS. The only format in iOS’s ECMAScript specifications is a simplified version of ISO-8601. If we change the space to a T, it is in spec, and functions on iOS.

    sources:
    ECMAscript language specification
    Javascript Date Invalid on iOS

    note* if you’re still having issue on android, check to see if jquery is being properly loaded on the page, and that $ is functional as a caller for jquery. if not, replace the document.ready() to utilize jQuery(document).ready() instead of $(document).ready

    • This reply was modified 5 years, 11 months ago by xombycraft.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Scheduled Content on Mobile’ is closed to new replies.