Remove Next/Previous Lesson Links from LearnDash Focus Mode

Updated 5 months ago
by Dave Warfel

When using focus mode, LearnDash displays “previous lesson,” “next lesson,” and “mark complete” links in two places:

  • the focus mode header
  • below the lesson/topic/quiz content

You might only want to use one set of these links and hide the other. I’ll provide a snippets for removing them from the focus mode header, as well as removing them from the bottom of the content area.

Remove From Focus Mode Header

body .learndash-wrapper .ld-focus .ld-focus-header .ld-content-actions {
	display: none;
}

Remove From Bottom of Content Area

.ld-focus-content .learndash-wrapper .ld-content-actions {
	display: none;
}

NOTE
This will also remove the “Back to Course” link that shows up below the “Mark Complete” button.


We strongly advise not using both sets of snippets because this will hide all next/previous & mark complete options, which will make it difficult for a user to navigate through your course.

All CSS code should either be placed in a child theme’s main CSS file (typically style.css), or the Additional CSS area of the WordPress Customizer.

How to Add CSS to Your Site

Forum Rules

Be Kind & Patient

We’re here to learn and/or help each other. Please don’t be mean, rude, or condescending. Treat all members the way you should be treating dogs and your elders—with the utmost love & respect.

External Links

✅ Other websites that add value, help solve problems & contribute to the discussion. ❌ Affiliate links are prohibited. (Site owners may use affiliate links to help support the site.)

Promotion

✅ You may promote your own products/services if they are relevant to an existing discussion. You must disclose your relationship with the product(s).
❌ You may not create new posts simply to promote your products.

Non-LearnDash Topics

❌ General (free) Forum: Only LearnDash-specific topics are allowed.
✅ Premium Forums: You are allowed to post other questions tangentially related to LearnDash. Please use the appropriately named forum. If it doesn’t exist, use the “LearnDash Integrations” forum.

Our Right to Remove

We reserve the right to remove any content, at any time, for any reason. We can also merge one post with another. We will exercise caution when removing content and always try to provide an explanation.