Home › Forums › Calendar Products › Events Calendar PRO › Photos in sidebar / color coding events in calendar widget
- This topic has 5 replies, 3 voices, and was last updated 11 years, 3 months ago by
Brian.
-
AuthorPosts
-
November 11, 2014 at 5:02 pm #877839
sevenelm
ParticipantHi, I apologize if either of these have been asked, I searched but did not see exactly what I was looking for.
I am using Events Calendar Pro. Works great, but i wanted to do two customizations. I am comfortable editing code – but i want to make sure there is not a better way to do these two things:
q. I want to have a css hook in the events calendar widget that either creates a clas sbased on category or organizer so that i can add a subtle BG to the td cell that is color coded – for example an NBA event would be green, an NHL event would be yellow (it is a Boston sports blog, if you couldn’t tell).
Also in the event loop below the calendar i would like to add teh feature dimage of each event as a thumbnail.
As mentioned I am comfortable coding, but i hate altering third party tools, client is asking for it, though, so I may have to.
November 12, 2014 at 7:57 am #879715Brian
MemberHi,
Thanks for purchasing Events Calendar Pro and I can help you out with some tips on this customization.
It is possible to edit our templates after you move them to the theme so the edits stay after updating the plugin.
If you follow our themer’s guide you can get a good overview of the process:
https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/
You will want to look into these two paths to find the files to move and then edit:
events-calendar-pro\views\pro\
\the-events-calendar\views\
And a good list of Event Conditionals can be found here:
https://gist.github.com/jo-snips/2415009
That should get you started. Let me know if you have any follow up questions.
Thanks
November 12, 2014 at 5:51 pm #880995sevenelm
ParticipantHi Brian thanks,
Just to clarify, the file I want to edit is the single-event file in the events-calendar-pro/views/pro/widgets/mini-calendar directory.
So, I need to create a dir in my theme called tribe-events-pro/views/pro/widgets/mini-calendar and place the overridden file there?
I think I just need to know exactly where I need to place this file.
November 12, 2014 at 8:35 pm #881243Andy Fragen
ModeratorHey, if you’re looking to add background colors to your categories you should try, The Events Calendar Category Colors plugin, https://wordpress.org/plugins/the-events-calendar-category-colors/
November 13, 2014 at 7:47 am #882164Brian
MemberYour welcome, that should be the file.
Try out his directory
tribe-events/pro/widgets/mini-calendar/
And all custom templates will go in this directory of your theme:
tribe-events/
No need to add tribe-events-pro or views to the directory.
Let me know if you have any follow up questions.
Also try out that plugin that Andy mentioned it may get you close to what you are looking for.
Thanks
December 30, 2014 at 7:21 am #926717Brian
MemberSince there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂
-
AuthorPosts
- The topic ‘Photos in sidebar / color coding events in calendar widget’ is closed to new replies.
