Title: Widget Areas for LearnDash
Author: Dave Warfel
Published: <strong>Disambor 18, 2019</strong>
Last modified: Julai 13, 2025

---

Search plugins

![](https://ps.w.org/widget-areas-learndash/assets/banner-772x250.jpg?rev=2412990)

![](https://ps.w.org/widget-areas-learndash/assets/icon-256x256.png?rev=2412990)

# Widget Areas for LearnDash

 By [Dave Warfel](https://profiles.wordpress.org/davewarfel/)

[Download](https://downloads.wordpress.org/plugin/widget-areas-learndash.zip)

 * [Details](https://rhg.wordpress.org/plugins/widget-areas-learndash/#description)
 * [Reviews](https://rhg.wordpress.org/plugins/widget-areas-learndash/#reviews)
 * [Development](https://rhg.wordpress.org/plugins/widget-areas-learndash/#developers)

 [Support](https://wordpress.org/support/plugin/widget-areas-learndash/)

## Description

Widget Areas for LearnDash simply gives you more places to add custom content in
LearnDash. By utilizing built-in LearnDash action hooks, we assign widget areas (
also known as “sidebars”) to various locations throughout your LearnDash pages.

### Available LearnDash Widget Areas

 * Focus Mode: Sidebar: Above Navigation
 * Focus Mode: Sidebar: Below Navigation
 * Focus Mode: Content: Start
 * Focus Mode: Below Content
 * Course Page: Content: Start
 * Course Page: Content: End
 * Group Page: Content: Start
 * Group Page: Content: End

Requires the “LearnDash 3.0” Active Template. Tested with LearnDash 4.23.

### How to Use

Upon activating the plugin, new widget areas will appear on the **Appearance > Widgets**
screen in your WordPress admin area. You can also access them via the Customizer(**
Appearance > Customize > Widgets**).

Simply add the blocks/widgets you’d like to insert into the corresponding widget
areas. Be sure to click the “Save” button at the bottom.

Navigate to a page that contains that widget area, refresh, and your new widgets
will be there.

### Types of Content to Add

WordPress comes with a set of default widgets, several of which might be useful.
If you’re using the new block editor, all blocks will also be available to you.

 * Add a simple **Paragraph** block with some basic text
 * Add an **Image** or **Video/Embed** block for more visual content
 * Add a **Navigation Menu** widget to insert a custom menu you’ve created
 * Add your own **Custom HTML** widget to embed an `<iframe>` or write your own 
   code

**TIP:** You can use the **LearnDash Student** and **LearnDash Visitor** blocks 
to display a block’s contents only to enrolled students or unenrolled visitors.

#### LearnDash Widgets

LearnDash comes prepackaged with a few widgets, but there’s probably only one that
makes sense in these widget areas.

 * Add a **Course Progress Bar** to the top or bottom of your Focus Mode sidebar

Feel free to experiment with the other [LearnDash widgets](https://learndash.com/support/kb/core/design/widgets/).

#### Elementor Templates

If you’re using Elementor Pro, you can create a custom section and embed it anywhere
on your site, including in your new LearnDash widget areas. There are two ways to
do this:

 1. When you go to insert a block/widget, select the **Elementor Library** widget. 
    Choose a template from the dropdown menu. Click “Save.”
 2. Navigate to **Templates > Saved Templates**. Copy the shortcode next to the template
    you want to insert. Now you’ll insert a **Shortcode** block into the widget area,
    and paste the shortcode.

For more information, see the article in [Elementor’s knowledge base](https://elementor.com/help/how-to-use-shortcodes/).

### Widget Area CSS Class Names

If you need to target the widget areas to apply custom styles using CSS, you can
use the following class names.

All widget areas have the `.ldx-widget-area` class.

 * Focus Mode: Sidebar: Above Navigation – `.ldx-widget-area.fm-nav-before`
 * Focus Mode: Sidebar: After Navigation – `.ldx-widget-area.fm-nav-after`
 * Focus Mode: Content: Start – `.ldx-widget-area.fm-content-start`
 * Focus Mode: Below Content – `.ldx-widget-area.fm-content-bottom`
 * Course Page: Content: Start – `.ldx-widget-area.course-content-start`
 * Course Page: Content: End – `.ldx-widget-area.course-content-end`
 * Group Page: Content: Start – `.ldx-widget-area.group-content-start`
 * Group Page: Content: End – `.ldx-widget-area.group-content-end`

Example Usage:

    ```
    .ldx-widget-area.fm-nav-before {
        margin: 1em;
    }
    ```

This would add 1em of spacing around the widget area that appears above the navigation
in the Focus Mode sidebar.

In addition, all widgets placed inside of a widget area have a class of `.ldx-widget`.

### Show/Hide Widgets on Certain Devices

While not a direct feature of this plugin, you can show/hide widgets on different
devices using another free plugin.

 1. Install & activate the [Widget Options](https://wordpress.org/plugins/widget-options/)
    plugin
 2. Navigate to the widget that you’d like to adjust the visibility on
 3. Scroll to the bottom and click on the tab with the mobile phone
 4. Choose to either show or hide on the checked devices
 5. Check the appropriate devices
 6. Click “Save”

### Show/Hide Widgets on Specific Course/Lesson/Topic Pages

Another feature of the free Widget Options plugin (mentioned above) is to only show
widgets on specific course, lesson, topic or quiz pages.

 1. Install & activate the [Widget Options](https://wordpress.org/plugins/widget-options/)
    plugin
 2. Navigate to the widget that you’d like to adjust the visibility on
 3. Scroll to the bottom and click on the settings cog icon
 4. Click on the **Logic** tab
 5. In the text box, you can use the `is_single()` conditional tag to only display 
    that widget on a specific page
 6. Use the ID of the course, lesson, topic or quiz

[👉 How to find the ID of LearnDash content](https://ldx.design/find-learndash-course-id/)

Example:

This would only display the widget on the page with an ID of `7`:

    ```
    is_single( '7' )
    ```

If you wanted to display a widget on multiple pages (with IDs of 1, 2 and 3), your
code would look like this:

    ```
    is_single( array( 1, 2, 3 ) )
    ```

There are many more [WordPress conditional tags](https://codex.wordpress.org/Conditional_Tags)
you can use.

### From within WordPress

 1. Visit “Plugins > Add New”
 2. Search for “Widget Areas for LearnDash”
 3. Click the “Install” button
 4. Click the “Activate” button
 5. Navigate to “Appearance > Widgets” or open the Customizer to start adding blocks/
    widgets to your new widget areas

## Screenshots

 * [[
 * New LearnDash widget areas shown on the **Appearance > Widgets** screen
 * [[
 * Visual location of the Focus Mode sidebar before & after navigation widget areas(
   highlighted in yellow)
 * [[
 * Visual location of the Focus Mode content start & below content widget areas (
   highlighted in yellow)
 * [[
 * Visual location of the course content start & course content end widget areas(
   highlighted in yellow)
 * [[
 * Use LearnDash’s `[student]` & `[visitor]` shortcodes to display widget content
   to enrolled or unenrolled users

## FAQ

### How do I add widgets?

There are two ways you can add widgets to the new widget areas that this plugin 
creates.

 1. Navigate to “Appearance > Customize” and click on the “Widgets” panel
 2. Make sure you’re previewing a page that contains the widget areas
 3. Click on the widget area in which you’d like to add content
 4. Click the `+` icon or use the `/` key to choose a block or widget
 5. Customize the content to your liking

-or-

 1. Navigate to “Appearance > Widgets”
 2. Locate the widget area you want to add content to
 3. Click on it to open it up
 4. Click the `+` icon or use the `/` key to choose a block or widget
 5. Customize the content to your liking

### Will this work with my theme?

Yes. Widget Areas for LearnDash should work with almost all themes. We use standard
LearnDash action hooks, so as long as your theme is not modifying this LearnDash
code (they shouldn’t be), then it should work.

You might experience some spacing irregularities, depending on how your theme styles
its default widgets. Please reach out in the [support forum](https://wordpress.org/support/plugin/widget-areas-learndash/)
so we can help you adjust spacing.

**Incompatible Themes:**

 * BuddyBoss (**LD Course: Content: End** works, but the other widget areas do not)
 * eLumine (The Focus Mode widget areas work, but not the ones on course pages)

### The Focus Mode sidebar widgets are touching the edge. How do I fix this?

If you’re already using the [Design Upgrade for LearnDash](https://wordpress.org/plugins/design-upgrade-learndash/)
plugin (free or pro), the spacing is automatically added for you. Not only does 
it add spacing, but it upgrades many other aspects of the LearnDash design.

If you’d like to write your own CSS, add the following code to the `style.css` file
of your child theme, or the “Additional CSS” area in the Customizer.

    ```
    .ldx-widget-area.fm-nav-before,
    .ldx-widget-area.fm-nav-after {
        margin: 1em;
    }
    ```

This will add `1em` of margin around the widget areas in the Focus Mode sidebar.
Feel free to adjust the value to achieve the spacing you want.

### Can I add a background color to a widget area?

Sure thing. Add the following code to the `style.css` file of your child theme, 
or the “Additional CSS” area in the Customizer. You’ll need to adjust it for the
specific widget area you’d like to target (see class names in description above).

    ```
    .ldx-widget-area.fm-content-start {
        padding: 0.75em;
        border-radius: 5px;
        background: #000;
        color: #fff;
    }
    ```

This would change the **Focus Mode: Content: Start** widget area to have a black
background and white text. The padding is there so the text doesn’t run up against
the edge of the box. Feel free to adjust the `border-radius` to match your site’s
style, or just delete it.

### The widget area I want isn’t listed.

That’s probably because we haven’t added it. There are 50+ different areas we could’ve
added widgets to, but that would clutter your WordPress admin area, and we didn’t
want to do that to you.

We carefully selected the areas we thought course creators would want most. However,
it’s possible we got this wrong. If there’s enough demand for a particular widget
area, and LearnDash allows us to target it, we’ll consider adding it.

## Reviews

![](https://secure.gravatar.com/avatar/7427dbee1e5a98def385b989a752dfbc0a52e53d5ac6bc1d4c40640031bbb07c?
s=60&d=retro&r=g)

### 󠀁[A neat little tool](https://wordpress.org/support/topic/a-neat-little-tool/)󠁿

 [robhoe1965](https://profiles.wordpress.org/robhoe1965/) Oktubor 21, 2022 1 reply

Perfect to customize your LD views.

![](https://secure.gravatar.com/avatar/cb7b9eab6e9c352194dee888f5b7e2dc81b91d018ba59555da4f5f6213adb229?
s=60&d=retro&r=g)

### 󠀁[a MUST HAVE plugin for all LearnDash users](https://wordpress.org/support/topic/a-must-have-plugin-for-all-learndash-users/)󠁿

 [haytov](https://profiles.wordpress.org/haytov/) Séptembor 28, 2021 1 reply

I have a big website for my online courses. using this plugin helped me customize
the focus mode, which is very essential. Works perfect, very useful. and GREAT support

![](https://secure.gravatar.com/avatar/5de886b06ccb21b006ebef6e57721104833cf53113a6af4a8d50a78b5fb7b165?
s=60&d=retro&r=g)

### 󠀁[Outstanding Support](https://wordpress.org/support/topic/outstanding-support-158/)󠁿

 [guy1](https://profiles.wordpress.org/guy1/) Ipril 6, 2021 1 reply

Not only is the plugin great, but its creator also went more than the extra mile
to help me.

![](https://secure.gravatar.com/avatar/bfada9c69640aa051dada9583d128cf9a0ed4cbf2528c54857ecb05197107c99?
s=60&d=retro&r=g)

### 󠀁[This is a VIP (Very Important Plugin:-)](https://wordpress.org/support/topic/this-is-a-vip-very-important-plugin/)󠁿

 [martenti](https://profiles.wordpress.org/martenti/) Maarec 19, 2021 1 reply

This is Very Important Plugin (VIP) for all LD users. Works great. And please dont
abandon the development, it’s very,very needed. Thank you!

![](https://secure.gravatar.com/avatar/f2b482eee0dbdbff0a4cee0a26ae9647062502c713de416d45b5e6d0712a61b5?
s=60&d=retro&r=g)

### 󠀁[Works like magic](https://wordpress.org/support/topic/works-like-magic-44/)󠁿

 [lahlahlande](https://profiles.wordpress.org/lahlahlande/) Ogóst 19, 2020 1 reply

Great little plugin helping you to add additional content on Learndash screens. 
Very easy to use.

![](https://secure.gravatar.com/avatar/068b6b4f7633a3e358d1711e68756e644949d4657aed54ebb70c33fe823475b0?
s=60&d=retro&r=g)

### 󠀁[Love this plugin](https://wordpress.org/support/topic/love-this-plugin-936/)󠁿

 [Jorge Ocampo](https://profiles.wordpress.org/jorgeocampo/) Julai 29, 2020 1 reply

This is a must for anyone using LearnDash

 [ Read all 9 reviews ](https://wordpress.org/support/plugin/widget-areas-learndash/reviews/)

## Contributors & Developers

“Widget Areas for LearnDash” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ Dave Warfel ](https://profiles.wordpress.org/davewarfel/)
 *   [ Escape Creative ](https://profiles.wordpress.org/escapecreative/)

[Translate “Widget Areas for LearnDash” into your language.](https://translate.wordpress.org/projects/wp-plugins/widget-areas-learndash)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/widget-areas-learndash/),
check out the [SVN repository](https://plugins.svn.wordpress.org/widget-areas-learndash/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/widget-areas-learndash/)
by [RSS](https://plugins.trac.wordpress.org/log/widget-areas-learndash/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2 – July 12, 2025

 * Update: Confirmed compatibility with WordPress 6.8, LearnDash 4.23, and PHP 8.4

#### 1.1 – August 17, 2020

 * Added: 2 new widget areas for group pages

#### 1.0 – December 18, 2019

 * Initial Release

## Meta

 *  Version **1.2**
 *  Last updated **9 mac óll ago**
 *  Active installations **700+**
 *  WordPress version ** 4.6 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 8.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/widget-areas-learndash/)
 * Tags
 * [learndash](https://rhg.wordpress.org/plugins/tags/learndash/)[learning management system](https://rhg.wordpress.org/plugins/tags/learning-management-system/)
   [lms](https://rhg.wordpress.org/plugins/tags/lms/)[online courses](https://rhg.wordpress.org/plugins/tags/online-courses/)
   [widgets](https://rhg.wordpress.org/plugins/tags/widgets/)
 *  [Advanced View](https://rhg.wordpress.org/plugins/widget-areas-learndash/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  10 5-star reviews     ](https://wordpress.org/support/plugin/widget-areas-learndash/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/widget-areas-learndash/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/widget-areas-learndash/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/widget-areas-learndash/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/widget-areas-learndash/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/widget-areas-learndash/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/widget-areas-learndash/reviews/)

## Contributors

 *   [ Dave Warfel ](https://profiles.wordpress.org/davewarfel/)
 *   [ Escape Creative ](https://profiles.wordpress.org/escapecreative/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/widget-areas-learndash/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/escapecreative/10)