WordPress.org

Forums

The Events Calendar Category Colors
[resolved] Whole calendar coloured in (18 posts)

  1. hansford77
    Member
    Posted 2 years ago #

    When I make a category a particular colour, it colours in the whole calendar. If I fiddle around with making events belong to particular categories it comes and goes, I can't see a pattern. Can you help please?

    http://109.123.74.31/~sheffiel/events/

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

  2. placeofstillness
    Member
    Posted 2 years ago #

    I had the same problem after updating the plugin a while ago. The solution for me was to change the events template setting to the one they provide - it's called "Default Events Template" accessed from Events - Settings - Template. Hope that will work for you.

  3. placeofstillness
    Member
    Posted 2 years ago #

    It's taking the color of your first event and using that color as the entire calendar page background.

  4. hansford77
    Member
    Posted 2 years ago #

    How do I configure the Default Events Template though, to have my styling?

  5. placeofstillness
    Member
    Posted 2 years ago #

    That I don't know. It plays nice with the theme I'm using (Suffusion). You'll probably have to email the dev.

  6. Andy Fragen
    Member
    Plugin Author

    Posted 2 years ago #

    @handsford77 - it seems that setting the template to Default Events Template has fixed this issue. Please confirm.

    You can create your own Events Template by copying/modifying the ecp-page-template.php. Please refer to the Themer's Guide for more info.

    @placeofstillness - thanks.

  7. hansford77
    Member
    Posted 2 years ago #

    Hi, no it isn't fixed because even though I've copied ecp-page-template.php to my theme and changed it, the page still doesn't look like my site. I understand that isn't your problem though as the events calendar isn't your plugin.

  8. hansford77
    Member
    Posted 2 years ago #

    I missed an important bit, where the file has to go into /events. I'm getting there now but it's long work getting it to look right! thanks guys

  9. Andy Fragen
    Member
    Plugin Author

    Posted 2 years ago #

    This issue should now be fixed within the plugin in v1.5.1 when using the Default Page Template (which is part of your theme and not part of The Events Calendar)

  10. Andy Fragen
    Member
    Plugin Author

    Posted 2 years ago #

    New v1.5.5 added a preference to check if your whole calendar is taking on the styling of the first event category of the month.

    Let me know if this hasn't solved the problem.

  11. Andy Fragen
    Member
    Plugin Author

    Posted 2 years ago #

    I have to remove this from the plugin, but if the code worked for you then you can copy if from my gist and put it in your theme's functions.php file.

    Sorry for any inconvenience. Let me know if this works.

  12. hansford77
    Member
    Posted 2 years ago #

    That works, thanks a lot.

  13. Andy Fragen
    Member
    Plugin Author

    Posted 2 years ago #

    @hansford77, glad it's all working for you.

  14. hansford77
    Member
    Posted 2 years ago #

    I spoke too soon... It's fixed the calendar but broken my blog. My theme uses post_class, and your filter hook stops that working.

  15. Andy Fragen
    Member
    Plugin Author

    Posted 2 years ago #

    It seems that you'll have to create and modify your own copy of ecp-page-template.php to fill your needs and refer to the Themer's Guide.

    Unfortunately a bug in The Events Calendar causes this extraneous category tag to be placed in the Default Page template. The other solution is to use the Default Events template. Sorry.

  16. Andy Fragen
    Member
    Plugin Author

    Posted 2 years ago #

    That filter hook in the gist should only fire on a calendar page. What does the blog look like when gist is active?

  17. hansford77
    Member
    Posted 2 years ago #

    The problem's on any archive page, so it's the main blog page, any category page, and also the event list view on the calendar. What happens is the div for each entry has no classes at all so the whole list loses styling.

  18. Andy Fragen
    Member
    Plugin Author

    Posted 2 years ago #

    I understand what's happening. The gist code is removing the class tag. What I don't really understand is why because the code should only do this on a calendar page.

    Unfortunately the "real" solution is as outlined above. Create your own version of the ecp-page-template.php. Sorry, it's really a case where this plugin exposes a flaw in the way the default template is treated. Inadvertently adding a category tag to the article tag that the grid is in. Unfortunately our little fix doesn't seem to work under this circumstance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar Category Colors
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.