• Resolved yvergo

    (@yvergo)


    Hello

    I want to show on the calendar the 2024 year when the page opens and generally show the years 2019-2024.

    I did this but the calendar is blank when I open the page. The previous button goes to 2023 and the next button to 2019, that is correct.

    The problem is that the current year’s calendar is empty.

    I did this:

    Includes/Total-Soft-Calendar-Widget.php. Find code in line 11600

    var count = 6

    line 11604

    if (i >= 60 && i < 72) {

    Thank you in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter yvergo

    (@yvergo)

    The problem is that the 2024 year shows nothing. It is not empty as I wrote on the topic. I have made two events for 2024 but the page is empty, I can only see the previous/next buttons without a calendar below. The years 2019-2023 work fine.

    Plugin Author totalsoft

    (@totalsoft)

    Hello, dear yvergo.

    Thank you for contacting us and reporting your problem.

    Edit our gallery file includes/Total-Soft-Calendar-Widget.php. Put code in line 11598

    Plugin Author totalsoft

    (@totalsoft)

    var count = 6
    jQuery(document).ready(function () {
    var calendars = document.querySelectorAll(".fyc-calendar-row");
    for (var i = 0; i < calendars.length; i++) { if (i >= 60 && i < 72) {
    continue;
    }
    calendars[i].style.display = "none"
    }
    });
    function nextCal() {
    var calendars = document.querySelectorAll(".fyc-calendar-row");
    count++;
    if (count == 7) {
    count = 1;
    }
    for (var i = 0; i < calendars.length; i++) {
    calendars[i].style.display = "none"
    }
    for (var i = 12 * (count - 1); i < 12 * count; i++) {
    calendars[i].style.display = "inline-block"
    }
    }
    function prevCal() {
    var calendars = document.querySelectorAll(".fyc-calendar-row");
    count--;
    if (count == 0) {
    count = 6
    }
    for (var i = 0; i < calendars.length; i++) {
    calendars[i].style.display = "none"
    }
    for (var i = 12 * (count - 1); i < 12 * count; i++) {
    calendars[i].style.display = "inline-block"
    }
    }
    Plugin Author totalsoft

    (@totalsoft)

    Everything needs to be put. After that save the calendar file.

    We are always happy to hear from you and solve all problems. We will develop the plugin with you. For us, the most important thing is that the plugin should be used by the developers themselves.

    Have a good day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘show certain years on calendar’ is closed to new replies.