• Resolved swimableadmin

    (@swimableadmin)


    The holiday calendar is sometimes showing from this year to 2033. I would like to have only the current year showing and have the other years accessible via the arrows.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author totalsoft

    (@totalsoft)

    Hello, dear swimableadmin.

    Thank you for contacting us and for reporting your problem.

    To solve your problem, edit our Total-Soft-Calendat-Widget.php file. Find code in line 11599.

                    var calendars = jQuery(".fyc-calendar-row");
                    console.log(calendars.length);
                    for (var i = 0; i < calendars.length; i++) {
                        if (i < count * 12) {
                            continue;
                        }
                        calendars[i].style.display = "none"
                    }
    
                }, 100)

    Please edit the code and write like this.

        jQuery( document ).ready(function() {
                    var calendars = jQuery(".fyc-calendar-row");
                    console.log(calendars.length);
                    for (var i = 0; i < calendars.length; i++) {
                        if (i < count * 12) {
                            continue;
                        }
                        calendars[i].style.display = "none"
                    }
                });
    Plugin Author totalsoft

    (@totalsoft)

    Find code in line 11611.

    var calendars = document.querySelectorAll(".fyc-calendar-row");

    Please edit the code and write like this.

    var calendars = jQuery(".fyc-calendar-row");

    Find code in line 11626.

    var calendars = document.querySelectorAll(".fyc-calendar-row");

    Please edit the code and write like this.

    var calendars = jQuery(".fyc-calendar-row");

    Thank You.

    Thread Starter swimableadmin

    (@swimableadmin)

    Hello,
    We have already checked the codes you mentioned in the Total-Soft-Calendar-Widget.php file in line 11599 but it seems to be a different code. We tried to search the file for the original code you mentioned but it is not existing on the file.

    Also, we checked line 11611 and line 11626 but it seems that it has a different code in it too.

    We searched for the var calendars = document.querySelectorAll(“.fyc-calendar-row”); instead and replace it with var calendars = jQuery(“.fyc-calendar-row”); but this doesn’t fix the issue.

    We noticed that it is rendering a different JS code on load and when we use the arrows which are the function nextCal() and function prevCal(). Please let us know if there are other files we can check or another fix on this issue.

    Plugin Author totalsoft

    (@totalsoft)

    Hello, dear swimableadmin.

    Thank You for contacting with us.

    For pro or commercial product support please contact us directly on our site.

    Commercial products are not supported in these forums.

    Thank You very much.`

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Holiday Calendar shows more than 1 year on same page’ is closed to new replies.