Home / Admin / Class Clashes | Display Eventbrite Events
Duplicate Snippet

Embed Snippet on Your Site

Class Clashes | Display Eventbrite Events

We have discovered conflicts between certain themes and classes, such as the .free class conflicting with the break styling.

To address this issue, the plugin offers several filters. In this particular case, there are a set of classes being output for the main article. To resolve the conflict, we can substitute the .free class with a different name, like .wfea__free, as demonstrated in the following micro plugin example:

(Note this code snippet applies for "Display Eventbrite Events Plugin" available here: https://fullworksplugins.com/products/widget-for-eventbrite/ )

Code Preview
php
<?php
add_filter(
	'wfea_event_classes',
	function ( $classes ) {
		return str_replace( 'free', 'wfea__free', $classes );
	},
	10,
	1
);

Comments

Add a Comment