Okay
  Public Ticket #1983139
Calendar adjustment option
Closed

Comments

  •   Filadelfia Vennesla started the conversation
  •   Filadelfia Vennesla replied privately
  •  877
    Zhivko replied

    Hi,

    1) Place the attached file tooltip.js in stachethemes_event_calendar\front\js\adds\ folder

    This file will be included in the next update.

    In your theme functions.php file at the bottom add following action:

    add_action('stec_after_html', function() {
        ?>
        <script type="text/javascript">
            (function ($) {
                $.stecExtend(function (m, data) {
                    
                    if (data.event.description) {
                        $('<div class="stec-tooltip-description">' + data.event.description + '</div>')
                                .insertAfter(data.tooltip.find('.stec-tooltip-desc'));
                    }
                }, 'filterTooltipHtml');
            })(jQuery);
        </script>
        <?php
    });
    

    This code will add description text to your tooltip.

    2) I'll add this in the to-do list for future update.

    3) Place attached files class.import.php and class.import-ical.php to stachethemes_event_calendar\admin\class\ folder

    This should fix the wrong time after import.

    Edit calendar bugs are fixed in the upcoming version 2.5.


    Stachethemes Developer

  •   Filadelfia Vennesla replied privately
  •  877
    Zhivko replied

    Go to St. Event Calendar -> Fonts & Colors -> Custom style and add following css:

    body .stec p { margin-bottom:0; }


    data.event.description

    is the introduction field. 

    The short description is stored in

    data.event.description_short

    The problem is somewhere else.

    I've noticed in your console log the script is crashing since stec-extend.js is not found which is puzzling because I see it loaded before this code...

    Try changing the code I've sent you earlier to this:

    add_action('stec_after_html', function() {
        ?>
        <script type="text/javascript">
            (function ($) {
                $(function () {
                    $.stecExtend(function (m, data) {                     if (data.event.description) {
                            $('<div class="stec-tooltip-description">' + data.event.description + '</div>')
                                    .insertAfter(data.tooltip.find('.stec-tooltip-desc'));
                        }
                    }, 'filterTooltipHtml');
                });
            })(jQuery);
        </script>
        <?php
    });



    Stachethemes Developer

  • Filadelfia Vennesla replied

    Thank you! Your latest changes worked like a charm. All is good now!

    Regards