Okay
  Public Ticket #3185139
Formatting
Closed

Comments

  • inforthb started the conversation

    Event preview 

    1. I have raised font sizes and change colours so that the event info is more legible... however on mobile it is still too small... how can I make it more legible? (see attached screen shot)... I am happy to use CSS...
    2. The event preview shows date and time... and looks nice without the top headings etc.. however there is no day... how can I have the date show short day, date, short month and year... I have set this as the default in wordpress settings... how can I make this happen... any chance of providing this feature in in future updates...



    Attached files:  Preview-Fontsize-Mpbile.jpg

  • inforthb replied

    I have solved the first issue, Item 1, I noticed that I had not selected !Important at the bottom of Fonts and Colours for event preview... so all good there... if you could respond to Item 2, that would be great :) 

    Regards

  •  877
    Zhivko replied

    Hi,

    2) Place the following hook in your theme or child-theme (recommended if you have child theme) functions.php file:

    add_action('wp_footer', function () {
        if (!wp_script_is('stec-js')) {
            return;
        }
        ?>
        <script type="text/javascript">
            (function($) {
                $(function() {
                    $.stecExtend(function(m) {
                        m.$instance.on('stecBeforeReturnBeautifyTimespan', function(e, data) {
                            var startDateMoment = moment(data.startDate);
                            data.temp.dateTimeString = startDateMoment.format('ddd') + ' ' + data.temp.dateTimeString;
                        });
                    });
                });
            })(window.jQuery)
        </script>
    <?php
    });


    Stachethemes Developer

  • inforthb replied

    Hi Zhivko

    thank you, that worked fine and looks very clear

    Will you consider providing more date format options in future releases so we do not need scripts?


    Warm regards

    Nigel

  •  877
    Zhivko replied

    Yes, the next version will have option to use the date format defined in your WordPress general settings.

    5875170842.png



    Stachethemes Developer