Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1228367

    Hello!
    First of all thanks for making such an amazing theme! I have encouraged several clients to use this b/c of its flexibility!

    I’m trying to edit the single event layout for The Events Calendar Pro but struggling to find the right code/template. On the events page it cuts off the “meta” info (email address) and the registration/rsvp is way at the bottom of the column. Would like for all of this to be on same column as the main event info if possible. Any advice/direction would be greatly appreciated.

    Thank you!
    Rebekah

    #1229796

    Hey 40eleven,
    Sorry for the late reply, as I understand you would like your “Tickets” registration section in the event meta sidebar.
    The following script will do this, but the sidebar is too narrow for the element, so one way to increase the sidebar width is to increase the page max-width, this css will do this only on single event pages.
    Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    @media only screen and (min-width: 990px) { 
    .responsive #top.tribe_events-template-default.single-tribe_events .container {
        max-width: 95% !important;
    }
    }

    Then add this code to the end of your functions.php file in Appearance > Editor:

    function custom_event_page_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
    $('.tribe_events.type-tribe_events').each(function() {
    $(this).find('#tribe-tickets').insertAfter( $(this).find('.tribe-events-event-meta.secondary') );
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_event_page_script');

    The ticket element may look low in the sidebar but that is because the map element is taking space, but it seems unused, if you are not going to use the maps I can move the ticket element up, or even put it at the top of your sidebar.
    After adding these please clear your browser cache and check.

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.