How to Fix a Broken Sidebar Caused by the EventON Widget
Last Updated: July 25, 2023
Does your website sidebar break after adding an EventON widget? Are all the widgets that come after the EventON widget showing up elsewhere on the page? If you’re experiencing any of these issues, don’t worry! We have a potential fix for you to try out.
Fix
To get started, we need to open the functions.php file, which is located in the “wp-content/themes/–” on your active theme’s folder.
Paste the below code anywhere in the functions.php file (the top part of the file would be better so you might not break any other functions)
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 ""; }
What’s the cause?
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 makes sure those injections through hooks are not added to the EventON widget.
Did this article help you?
- How to
- ** How to use event_type category to do more
- How to Activate EventON
- How To Allow Users to Submit Events and Create an Events Listing Page
- How to apply a patch fix
- How to Bulk Update Language Translations Using the Import/Export Tool
- How to cancel addon subscription before auto renew
- How to Deactivate EventON Addon Licenses
- How To Display or Hide the Live Now Icon
- How to Enable Auto-updates for EventON
- How to find your EventON license key (Purchase key)
- How to Fix a Broken Sidebar Caused by the EventON Widget
- How To Hide Blank Rows On the Calendar EventTop
- How To Set Up and Use the Filter Bar on Calendars
- How to Set Up Health Guidelines for EventON and Extend It
- How to Setup & Use Custom Fields for Events
- How to setup & use multi data types
- How to Setup Basic Paypal for Events
- How to show past events
- How to show your calendar on external sites using an iFrame
- How To Turn on Sort Options On Your Calendar
- How To Upgrade Your EventON Addon License
- How to Use Hashtags to Link to Event Sections
- How to Use Single Event Data Values
- How to Use the EventCard Designer
- How To Use the EventON Shortcode Executor(ESE) Widget
- How To Use The EventTop Designer
- How To Use the ICS Import Tool
- How to Use Virtual Visible Event End Time for Events with Limited Visibility but Extended Durations
- Using an SMTP Mail Plugin To Solve Email Delivery Issues in EventON