Adding LifterLMS Sidebar Support to your custom or third-party theme

Getting Started

# Top

If your theme doesn’t currently support LifterLMS sidebars you can, in most cases, get sidebar support via the steps below.

Using LifterLMS Labs

# Top

If you’re not a theme developer and want to get sidebars working in a few clicks give LifterLMS Labs Super Sidebars a shot. The option with LifterLMS Labs Super Sidebars tries to insert the necessary support for LifterLMS sidebars to your theme, sometimes it works, but a theme sidebar may not be identifiable, so you may need to try the tutorial below if Super Sidebars doesn’t work for you.

Locate the ID of your theme's primary sidebar

# Top

If you already know your sidebar’s ID you can skip this step. 

The ID we’re looking for is the “id” the theme passes to the WordPress core register_sidebar() method.

You can probably find this by searching for this function in your theme’s functions.php file or a “find in folder” of your entire theme.

You can also find this on the WordPress admin panel by doing a little bit of digging around as seen in this tutorial video:

Use the Sidebar ID in this code snippet

# Top

Use the sidebar ID from the previous step and replace “my-sidebar-id” in the snippet below with your ID. Then add the snippet to your functions.php file in your theme or child theme or to a custom plugin.

Declare Theme Support

# Top

After ensuring that sidebars work, you can declare explicit theme support so that LifterLMS does not display any warnings on the admin panel.

You can do so by adding this snippet:

Last Updated on
Was this article helpful?