Okay
  Public Ticket #3046228
Move day and time box in tooltip
Closed

Comments

  • Betina started the conversation

    Hello

    When you hover over an event, the preview show up, and there's a little box in the bottom which shows the day and time of the event. Can you hide the top date box in the top and move this box up there? 

    Thanks in advance :)

    Attached files:  Calendar tooltip.jpg

  •  783
    Zhivko replied

    This hook should do it:

    add_action('wp_footer', function () {
        if (!wp_script_is('stec-js')) {
            return;
        }     ?>
        <script type="text/javascript">
            (function($) {             $(function() {
                    $.stecExtend(function(m, data) {                     var timespan = data.tooltip.find('.stec-tooltip-timespan');
                        var icon = data.tooltip.find('.stec-tooltip-icon');                     timespan.insertAfter(icon);
                        icon.remove();                 }, 'filterTooltipHtml');
                });         })(window.jQuery);
        </script>
    <?php
    });


    Stachethemes Developer