1. Home
  2. Knowledge Base
  3. Uncanny LearnDash Toolkit
  4. Resume Button

Live Demo

See this module in action on our LearnDash demo site!

Overview

The LearnDash Resume Button module enables a shortcode that allows signed-in users to immediately return to the last LearnDash post (course, lesson, topic or quiz) that they visited.

Shortcode

[uo_learndash_resume]

Adding the shortcode will create a button (which will adopt any styles set for form submit buttons on your site) that’s visible to users that have visited at least one LearnDash page. Because the button depends on users being signed in, it’s recommended that you add the shortcode to a page only accessible to signed-in users.
Resume button with lesson text

Course-Specific Resume Buttons

Version 2.5 of the Toolkit and later support resume buttons that remember the last visited lesson, topic or quiz in each course. You can insert this shortcode on course pages to use it:

[uo_course_resume course_id="x"]

The course_id attribute is required and allows the shortcode to be used outside of course pages. Replace the “x” in the example with the ID of your course to link it to the associated course.

Customization

The button can be restyled with CSS. Here’s an example of how to target the Resume button:

a.learndash-resume-button input[type="submit"] {color:#FFF;}

Please Note: The Resume button should only be placed on non-LearnDash pages. When on a LearnDash page, that page would become the last LearnDash page visited and the Resume button would therefore link to itself.

Was this article helpful?

38 replies
  1. Hanneke
    Hanneke says:

    I can’t put the LearnDash Resume Button on. The system ask: LearnDash is needed for this add-on.
    Add-on doesn’t work. The timer goes on and on.
    I only installed uncanny toolkit.

    An other question: can I use this plug in without woocommerce?

    It would be kind to hear from you.
    WIth kind regards,
    Hanneke Stam
    The Neterlands

    Reply
    • Ryan
      Ryan says:

      Make sure you have LearnDash installed (the latest version) and have not renamed the LearnDash plugin folder. Also make sure that you are using PHP 5.6 or higher.

      And yes, you can definitely use this plugin without WooCommerce.

      Reply
  2. Stephanie
    Stephanie says:

    I’m having trouble changing the continue/resume button text. I have changed it within the Dashboard > Uncanny Toolkit but its not showing those changes and I have cleared cache and everything. I’ve even tried different browsers. It just wont update on the page where the button is. It will load the new text for a second then switches back to the original text. Yet the text in the settings is the new text I have entered..

    Reply
    • Ryan
      Ryan says:

      There could be a number of reasons for this. Are you using a translation plugin that’s overriding it? If you try changing your WordPress language settings to US English, does that correct the issue? Is the text definitely being saved properly in the settings, so if you go back in is your previous text still there?

      Reply
      • Stephanie
        Stephanie says:

        Hi Ryan, thanks for responding to my message. There is no translation plugin being used and the settings are already on US English. And lastly, yes if I exit the Uncanny toolkit page and go back in to check the settings, the text is still showing up as the new text I had entered. I have however noticed that the version we have is 2.1 but there has since been new updates. Although nothing specifically around my issue is showing in the changelogs. I think perhaps that is contributing to the issue though, unless you have some other suggestions around this?

        Reply
        • Ryan
          Ryan says:

          You should definitely be running that latest version of the plugin. Try that, if you continue to have issues specific to your site, it’s better if we take a look through a tickets in the WordPress.org support forum rather than this Knowledge Base article.

          Reply
  3. Andreas
    Andreas says:

    Hi, integrated the shortcode on the course detail page but button doesn’t work. I already completed a topic but The link always goes back to the course page itself. Whats the problem here?

    Reply
    • Ryan
      Ryan says:

      Yes, the button should never be added to LearnDash pages. It’s in the important note at the bottom of the article above. 🙂

      Reply
    • Ken Young
      Ken Young says:

      Hi Rob, the Resume button shows up on our development server in Firefox. Perhaps there’s a theme conflict preventing it from showing up on your site. Try switching themes to see if that helps.

      Reply
  4. Louis
    Louis says:

    Is there a way to display the title of the course or lesson that the resume button is attached to? The button works, but I don’t know how to display where it will take the user.

    Reply
    • Ken Young
      Ken Young says:

      Unfortunately, there’s currently no way to do that. However, that’s a good suggestion, and I’ve added it to our product backlog. Thanks!

      Reply
  5. Nathan Boeker
    Nathan Boeker says:

    I have the latest plugins, but the regular shortcode seems to be broken. Put the code on the home page, and tried turning off the course name setting, etc. to get it working. It shows blank instead of the code, so it seems to be parsing, but not displaying. Any ideas?

    Reply
    • Ken Young
      Ken Young says:

      When we see this, typically what’s happening is the user that is previewing the button doesn’t actually have any resume data saved; that is, they haven’t visited any course, lesson, or topic pages that would record any data to “resume” from.

      Reply
  6. John
    John says:

    Is there any way to display the course and lesson name while using this shortcode?

    I checked the box to “Show Name of Last Course / Lesson / Topic” but the shortcode only displays the lesson name when a lesson was the last visited page. In my situation, that doesn’t give enough context to be helpful. It would be helpful if I could display the Course Name followed by the Lesson Name. Or, if it just took me back to the course page the user would see what they’ve completed in the course nav.

    Thanks

    Reply
    • Ken Young
      Ken Young says:

      The most recent version of the Toolkit includes a course-specific resume feature, so you can have a resume button for each course. You may be able to use that feature to accomplish something similar to what you’re looking for.

      Reply
  7. Ken Graversen
    Ken Graversen says:

    We would like to include the Resume button along with some introduction text. We want this text only to be displayed when the user has actually started the course – just like with the button. That is – when there is something to resume.
    How can we achieve this?

    Reply
    • Ryan
      Ryan says:

      That’s odd, the default behaviour of the Resume button is to only show when the user has previously visited a LearnDash post. Maybe the user visited a course page before they enrolled?

      Reply
      • Ken
        Ken says:

        Hi Ryan
        My bad. You are right.
        Any suggestions as to how we can include some text that is only shown when the Resume button is also show?
        Right now the text is a reference to the resume function so at first login there is nothing to resume and the text is misleading.

        Reply
        • Ken Young
          Ken Young says:

          If you place the text right after the resume button link, you could use some CSS trickery to show it only when the resume button is on the page. Assuming your text was inside a div with the class “resume-text”, here’s the CSS:

          .resume-text {
          display:none;
          }

          a.learndash-resume-button ~ .resume-text {
          display:block;
          }

          Reply
  8. Todd Berntson
    Todd Berntson says:

    Great plugin! I can’t seem to figure out how to get the button to center on my page. I added the “margin: auto;” command in CSS, but that doesn’t seem to do the trick. Any feedback would be greatly appreciated. Here is the CSS code I am currently using with the button:

    a.learndash-resume-button input[type=”submit”] {color:#FFF; margin: auto;}

    Thanks.

    Reply
    • Ken Young
      Ken Young says:

      To center the button, you can either place it inside a div with text-align:center, or add display:block and a width (along with margin:auto) to the button via CSS.

      Reply
  9. Christine Lekovich
    Christine Lekovich says:

    I’ve put the shortcode on my Learndash Course Grid page, and the Resume button will not work.
    I’ve actually tried to put the code on other wordpress pages and can’t get it to work anywhere.

    Any help would be greatly appreciated!

    Reply
    • Ryan
      Ryan says:

      What are you seeing when you add it? If it’s blank, note that nothing will be shown if no LearnDash pages have been visited since the module was turned on. Make sure you visit some course pages before you test this. If you just see the shortcode, make sure you have the module turned on in the Modules page for the Toolkit.

      Reply
  10. Michael Coffin
    Michael Coffin says:

    Christine, I could not get the Resume shortcode to work on the course list page either. I assume it’s a conflict with the LD shortcode running on the same page.

    My workaround was to place the Resume shortcode in the nav menu. I set it to appear only for logged in users. Works perfectly! Hope this helps.

    –Michael

    Reply
  11. Theo
    Theo says:

    My quiz was placed as a shortcode on a page and then I added the resume button on that same page, it shows alongside the Start Test button and when clicked, it goes to the quiz directly but shows blank instead. I don’t know how else to place the resume shortcode. Basically I need students to be able to resume the test from wherever they stop

    Reply
    • Ken Young
      Ken Young says:

      Hi Theo, the Resume Button navigates the user to the last-accessed LearnDash object (course, lesson, topic, or quiz). That’s why it’s taking users directly to the quiz. It doesn’t support resuming a quiz. There are other plugins out there that will do that though; a quick search Google for “Resume LearnDash Quiz” turned up a couple.

      Reply
  12. Darryl J Burling
    Darryl J Burling says:

    Any way to force the button to appear when there is no resume data? I use WPFusion to determine course access and when a course is completed, I want the next course to be the main focus by hiding the old one and showing the new one.

    Reply
    • Ryan
      Ryan says:

      Any chance you’re using the Pro plugin? If you are, and with the enhanced course grid, we use a Start button (“start_course_button” attribute) instead of Resume for users entering a new course. This is our preferred approach. You can’t otherwise show the button if there is no progress.

      Reply
  13. Darryl J Burling
    Darryl J Burling says:

    I’m not using the pro plugin, nor the course grid. I have a custom built home page for members since there are a number of directions for them to go and I want their current course to be front and centre rather than have them have to navigate through a set of courses. Thanks anyway.

    Reply
    • Ryan
      Ryan says:

      Sorry about that. If you are or have a developer, the Resume module should at least give you a starting point to leverage for building the functionality you need.

      Reply
  14. Theo Godson
    Theo Godson says:

    Please how can I put the resume short code to enable students resume the quiz tests from the last question they answered?

    Reply
    • Ryan
      Ryan says:

      I’m afraid that’s not an option within our module (it can only resume to pages in LearnDash, not specific questions in a quiz).

      Reply
  15. Louis Mensinger
    Louis Mensinger says:

    Just following up on my previous question, is there a way yet to display the title of the course or lesson that the resume button is attached to? Last you said you would work on it but I haven’t seen any updates yet.

    Reply
    • Ryan
      Ryan says:

      Our product lead decided to hold off for the time being, mainly because of implications this behaviour would have to integration with our dashboard and course grid modules in Pro. We do still plan to look at it, but after the initial investigation and effort estimate, we are going to hold off for now.

      Reply
  16. Mike Curry
    Mike Curry says:

    Hi Ryan, is there any way to get the behaviour of this shortcode without displaying a button? I’d like to use it in a navigation menu. I can use shortcodes in my menu but at present it transforms into a button.

    Reply
    • Ken Young
      Ken Young says:

      Unfortunately, there’s currently no way to output the resume button as a link. However, we’ll consider that for a future release. Thanks for the feedback!

      Reply

Comments/Questions

Please note that this is not an official support channel and questions/comments may go unanswered.
To request support, log in to your account and click Submit a Request.

Leave a Reply

Your email address will not be published. Required fields are marked *