Okay
  Public Ticket #2238551
Relocating the location on Single Page
Closed

Comments

  • rtackabury started the conversation

    Hello,
    I am trying to edit the Single Page code. I would like to have the Location of the event appear under the date on the Single Page.

    For example, in the attached image, I would like the location to appear under December 10, 2019.

    Is there an easy piece of code to add to make this possible?

  •  894
    Zhivko replied

    Hi,

    Open your theme functions.php file and at the bottom add following:

    add_action('stec_single_after_content', function() {
        ?>
        <script type="text/javascript">
            (function ($) {
                $(function () {
                    if (!stecSingleEvent.location.full_address) {
                        return;
                    }
                    $('<br><span>' + stecSingleEvent.location.full_address + '</span>').appendTo('.stec-layout-single-preview-left-text-date');
                });
            })(window.jQuery);
        </script>
        <?php
    });



    Stachethemes Developer