How to Change the Default CSS for Event Tickets/Pro

Home Forums Calendar Products Community Events How to Change the Default CSS for Event Tickets/Pro

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1081832
    samuel
    Participant

    Hello,

    I am currently trying to minimize the amount of CSS files that are called when my page loads.

    In order to do this I am moving all of the CSS manually to my theme’s style.css.

    With The Event Calendar it was easy enough, by just switching to the Skeleton theme.

    I also found in the Themer’s Guide how to change the default CSS file in the PHP for the event calendar pro and widgets using the following:
    tribe_events_stylesheet_url (The Events Calendar core styles)
    •tribe_events_pro_stylesheet_url (The Events Calendar Pro styles)
    •tribe_events_pro_widget_calendar_stylesheet_url (The Events Calendar calendar widget styles)

    Unfortunately, I cannot find the code to change the default location to the following css files.
    event-tickets/src/resources/css/rsvp.css
    event-tickets-plus/src/resources/css/wootickets.min.css

    Any help would be most appreciated.

    #1082147
    Nico
    Member

    Hi Samuel,

    Thanks for reaching out to us! I’ll help you on this…

    Try adding the following snippet to your theme’s functions.php file:


    add_action('wp_print_styles', 'dequeue_tickets_style', 20);

    function dequeue_tickets_style ( ) {
    wp_dequeue_style( 'event-tickets-rsvp' );
    wp_dequeue_style( 'TribeEventsWooTickets' );
    }

    That should do the trick, let me know about it,
    Best,
    Nico

    #1087769
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to Change the Default CSS for Event Tickets/Pro’ is closed to new replies.