This video will walk you through how to show or hide widgets in various LearnDash widget areas. It requires the following two free plugins:
Widget Areas for LearnDash
👉 https://wordpress.org/plugins/widget-...
Widget Options
👉 https://wordpress.org/plugins/widget-...
SHOW/HIDE WIDGETS ON CERTAIN DEVICES
1. Install & activate both plugins
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/QUIZ PAGES
1. Install & activate both plugins
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 (use the ID of the course, lesson, topic or quiz)
👇 How to find the ID of a LearnDash course/lesson/topic/quiz
https://ldx.design/find-learndash-cou...
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.
https://codex.wordpress.org/Condition...