WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
CSS override not being applied (6 posts)

  1. Jay Collier
    Member
    Posted 3 years ago #

    I've added an events.css override in my theme/events/events.css folder, but it is not being applied.

    Is there something else I need to do to activate?

    I'm using WP3.01 multisite. Other than this, love the plugin.

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. justinendler
    Member
    Posted 3 years ago #

    No other steps necessary to activate. I've confirmed this as a bug with all versions of the calendar with multisite enabled. We're looking at it, but it's not promising because I found a WP function that is not behaving properly with multisite on, so this could be a WP bug.

    I think I'll have time to figure out and post a temporary fix here later today, but it will most likely not be included in the next version, so it will be a hack in the true sense (you would have to hack the plugin again every time you update).

    Justin

  3. justinendler
    Member
    Posted 3 years ago #

    If you're interested in hacking it, I didn't have time to confirm anything, but here are two suggestions:
    - find the function loadDomainStylesScripts in the-events-calendar.class.php
    1. Try changing the if statement header from

    if( file_exists( TEMPLATEPATH.'/events/events.css' ) ) {

    to

    if( true ) { //HACKED

    2. If that does not work, leave it that way, but try some different paths in the function that loads the stylesheet. To do this, try some paths in the second argument to the first occurrence of wp_enqueue_style. The path needs to lead to your custom file.

    Hope this helps.

    Justin

  4. Craig S. Kiessling
    Member
    Posted 3 years ago #

    I'm eager to see if this worked for him.

  5. Jay Collier
    Member
    Posted 3 years ago #

    I'm working with so many plugins right now, that I'm not hacking any of them. I'll wait until the bug is resolved.

    Also, I had an interesting error where I renamed the "events" category to "happenings" and the entire site went to white screen, front and back-end.

  6. monodistortion
    Member
    Posted 3 years ago #

    This may or may not be the same bug but it came up in my search results. This was the solution I found:
    http://wordpress.org/support/topic/plugin-the-events-calendar-override-eventscss?replies=2#post-1843267

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic