On occasion, it may be necessary to incorporate custom CSS settings into individual event pages or shortcodes. There are several reasons for doing so. By entering the CSS code into the designated box, it will load in any location where the MEC scripts are loaded.
Applying Custom CSS Settings
This feature enables users to exercise greater control over the appearance of their event pages and shortcodes, thereby enhancing the overall user experience.
Fixing CSS Conflicts
If the event date field has alignment issues or goes to the edge of its boundary, the problem may be due to custom CSS on your website. Here’s how you can troubleshoot and resolve this:
Inspect the CSS Code: Check your custom CSS to identify any conflicting classes or styles that might affect the
.mec-event-date-carousel
class or others related to the event date display.Modify Custom CSS: Add new custom CSS targeting the calendar view to override problematic styles. For example, ensure proper margins to avoid text going to the edge.
Remove
!important
Overrides: If the conflicting CSS contains!important
, removing it will allow your new CSS values to apply. Specify your desired values for the.mec-event-date-carousel
class after removing overrides.Check Theme or Page Builder Settings: Sometimes, additional CSS from themes or page builders (e.g., Elementor) may conflict. Investigate and update these settings if necessary.
Using Inspect Elements
For more information about CSS and inspecting elements, please head over to this link. In addition, you can explore related topics such as using Elementor for advanced calendar styling, troubleshooting CSS conflicts for responsive designs, and utilizing shortcodes in Webnus plugins.