Last updated: 3 years ago

Does your website sidebar breaks after adding eventON widget? Does all the widgets after eventON widget shows elsewhere ? If any of the above things happen for you please try the below fix.

 

Fix

Open function.php file from wp-content/themes/– your active theme folder

Paste the below code anywhere in the functions.php (top part of the file would be better so you might not break any other functions)

[code]

add_action(‘eventon_before_widget’, ‘eventon_widget_fix’);

add_action(‘eventon_after_widget’, ‘eventon_widget_fix’);

add_action(‘eventon_before_widget_SC’, ‘eventon_widget_fix’);

add_action(‘eventon_after_widget_SC’, ‘eventon_widget_fix’);

function eventon_widget_fix(){

echo “”;

}

[/code]

Reason for this happening

Some themes, as we have found out, try to hook into either only before or only after the widget actions. This breaks the HTML of the front-end widget. So the above code make sure those injections through hooks are not added to eventON widget.

Ready to setup your calendar?

Buy EventON Now