Title: Customizing month and list view using code
Last modified: May 21, 2024

---

# Customizing month and list view using code

 *  Resolved [blubas35](https://wordpress.org/support/users/blubas35/)
 * (@blubas35)
 * [2 years ago](https://wordpress.org/support/topic/customizing-month-and-list-view-using-code/)
 * I am trying to customize and style the events calendar month and list view I 
   did that by writing custom html and css in month.php file (I havent touched the
   list.php file yet). It looks good when we first open up calendar page. However,
   if we change the view between month and list then back to month the calendar 
   is getting all messed up it duplicated my created html and calendar doesnt look
   as it did before that. I am attaching video and my month.php code [https://streamable.com/3va961](https://streamable.com/3va961)
   
   [https://paste.ofcode.org/gfqUKQT6SqgSutznqeDWaC](https://paste.ofcode.org/gfqUKQT6SqgSutznqeDWaC)
   Any idea what is going on?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [2 years ago](https://wordpress.org/support/topic/customizing-month-and-list-view-using-code/#post-17770040)
 * Hi [@blubas35](https://wordpress.org/support/users/blubas35/)
 * Thanks for reaching out. Let me help you with this one.
 * It seems the container of your calendar shrunk, and that is why the styling applied
   to your calendar is for mobile view. Please revert the changes you’ve made and
   see if the issue persists. If it doesn’t, try to apply your customizations one
   at a time and see which part is causing the issue.
 * I hope this helps. Let me know if you have further concerns.
 *  Thread Starter [blubas35](https://wordpress.org/support/users/blubas35/)
 * (@blubas35)
 * [2 years ago](https://wordpress.org/support/topic/customizing-month-and-list-view-using-code/#post-17773112)
 * Thank you for your reply.
   I managed to fix this issue by applying my customizations
   a bit differently.I have another issue with the events calendar.I have a gallery
   page in which I want to query all the events. However, when using query loop 
   and post type ‘tribe_events’ events with date greater than today is shown. First
   I thought its bricks builder query loop functionality but then I looked at the
   SQL query generated report and saw that this is coming for the events calendar(
   I am attaching photo). [https://imgur.com/JjYP6Gr](https://imgur.com/JjYP6Gr)
 * My query loop settings
   [https://imgur.com/FF4UyeL](https://imgur.com/FF4UyeL)
   Is it possible to show all events past and future?
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [2 years ago](https://wordpress.org/support/topic/customizing-month-and-list-view-using-code/#post-17779303)
 * Hi [@blubas35](https://wordpress.org/support/users/blubas35/)
 * Currently, only upcoming events will show when you use the Query Loop.
 * If you want to do some customizations you can try using [tribe_get_events](https://theeventscalendar.com/knowledgebase/using-tribe_get_events/)
   so you can retrieve both past and upcoming events.
 * I hope this helps. Let me know if you have further questions or concerns.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [2 years ago](https://wordpress.org/support/topic/customizing-month-and-list-view-using-code/#post-17783590)
 * Hi there,
 * It seems like it has been some time since we received a response from you, therefore,
   I will consider this matter as resolved. If you require any further assistance,
   please do not hesitate to start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Customizing month and list view using code’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Darian](https://wordpress.org/support/users/d0153/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/customizing-month-and-list-view-using-code/#post-17783590)
 * Status: resolved