Widget Areas for LearnDash

Widget Areas for LearnDash

Wordpress plugin

Install on Wordpress

App Details

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 3.6.0.3.

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.

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.

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 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 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

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 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

Pricing

Starting from $0 per month.

Check Out the Form Builder Widget

By Common Ninja

Form BuilderTry For Free!

App Info

Rating

Reviewers

10 reviews

Tags

learndash
learning management system
lms
online courses
widgets

Developed By

Escape Creative

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Forms

Forms plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Comments

Comments plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Maps

Maps plugins for Wordpress

Security

Security plugins for Wordpress

Translation

Translation plugins for Wordpress

Ads

Ads plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Chat

Chat plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Membership

Membership plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Contact

Contact plugins for Wordpress

Comments

Comments plugins for Wordpress

Analytics

Analytics plugins for Wordpress

More plugins

plugins You Might Like

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms