Skip to content

Instantly share code, notes, and snippets.

@mrkdevelopment
Last active March 28, 2024 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrkdevelopment/3f567ca589133ff3a5b63d86f0282996 to your computer and use it in GitHub Desktop.
Save mrkdevelopment/3f567ca589133ff3a5b63d86f0282996 to your computer and use it in GitHub Desktop.
CSS for Event Calendar Date Styling
.tribe-events .tribe-events-calendar-list__event-date-tag-datetime{
padding-top: 0;
}
.tribe-events-calendar-list__event-date-tag-daynum{
border-radius: 0 0 4px 4px;
border: 2px solid var(--global-palette5) !important;
display: block;
text-align: center;
font-size: 2rem !important;
text-decoration: none;
color: var(--global-palette-highlight) !important;
}
.tribe-events-calendar-list__event-date-tag-weekday{
border-radius: 4px 4px 0 0;
text-align: center;
background: var(--global-palette5);
color: var(--global-palette9) !important;
font-size: 1rem !important;
font-weight: bold !important;
}
@media screen and (max-width: 782px){
.tribe-events .tribe-events-calendar-list__event-date-tag{
margin-right: 1rem;
}
}
@mrkdevelopment
Copy link
Author

This css snippet changes your date display for The Events Calendar plugin for WordPress.

Paste the snippet into your child theme of custom CSS area to get the desired outcome.

Read a full article on how to implement it on my website here:

https://www.mrkwp.com/2024/03/how-style-date-display-events-calendar/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment