YooTheme

Widgets do not display within sub menus

YooThemes alters the way widgets are processed by WordPress, which prevents widgets from displaying within sub menus.

Unfortunately there is currently no correct solution for this, as it requires editing the theme files directly.

Temporary Workaround

Step 1

Edit vendor/yootheme/theme-wordpress-widgets/src/WidgetsListener.php , find:

Replace with:

Please note you will need to reapply this change each time the theme is updated. We are attempting to work with YooTheme in order to get this change added directly to the theme itself. If you are reading this and are in contact with YooTheme support, please link them to this page and request they make this change to the theme.

Step 2

In your Child Themes functions.php file, add the following:

Related Articles