Title: Remove lesson exerpt
Last modified: June 24, 2020

---

# Remove lesson exerpt

 *  Resolved [eyedia](https://wordpress.org/support/users/eyedia/)
 * (@eyedia)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/)
 * Hello. I would like to remove the post excerpt that shows when a lesson has a
   prerequisite lesson that has not yet been completed. Here is a screenshot of 
   what i mean: [https://imgur.com/e4qND3n](https://imgur.com/e4qND3n)
 * If it’s not possible to remove the excerpt, is there a way to atleast add a class
   via my functions.php to add a class that i could then hide the excerpt?
 * Thank you

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Luis Méndez Alejo](https://wordpress.org/support/users/gnumax/)
 * (@gnumax)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13031496)
 * Hi Eyedia,
 * Do not fill in the excerpt, in the Lesson, and put that text inside the normal
   text box of the lesson, so if you have not done the previous lesson or are not
   logged in, you will not be able to see that excerpt text.
 * Sample: [https://monosnap.com/file/dis8MSqK56g3ZW74fAYGEQSHPvlZhz](https://monosnap.com/file/dis8MSqK56g3ZW74fAYGEQSHPvlZhz)
 * 😉 Regards!
    -  This reply was modified 6 years ago by [Luis Méndez Alejo](https://wordpress.org/support/users/gnumax/).
    -  This reply was modified 6 years ago by [Luis Méndez Alejo](https://wordpress.org/support/users/gnumax/).
 *  Thread Starter [eyedia](https://wordpress.org/support/users/eyedia/)
 * (@eyedia)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13031511)
 * Hi Luis, Thank you for the quick response! I think the screenshot you sent me
   is for someone else though?
 * I am using a page builder for the lessons (cornerstone from themeco)
 * So i’m not filling in any excerpt area.
 * Is there any other way to disable the excerpt or atleast hide it in these cases?
 *  [Luis Méndez Alejo](https://wordpress.org/support/users/gnumax/)
 * (@gnumax)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13031540)
 * Hi Eyedia,
 * The screenshot was for you to see the example
 * [https://monosnap.com/file/dis8MSqK56g3ZW74fAYGEQSHPvlZhz](https://monosnap.com/file/dis8MSqK56g3ZW74fAYGEQSHPvlZhz)
 * I usually use DIVI and the lesson excerpt always exists, check out the new screenshot
 * [https://monosnap.com/file/AOXpeeggXzD2AYrw0xZ69vGiLUQidL](https://monosnap.com/file/AOXpeeggXzD2AYrw0xZ69vGiLUQidL)
 * The excerpt is only visible by accessing the Lesson from the dahsboard > Lessons&
   edit the lesson
 * 😉
 *  Thread Starter [eyedia](https://wordpress.org/support/users/eyedia/)
 * (@eyedia)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13031624)
 * Hi Luis,
 * The first image you sent was for something totally different but was correct 
   this time.
 * So check out this screenshot, i don’t have an excerpt area like you show:
 * > [View post on imgur.com](https://imgur.com/dpBNlcR)
 * So what it shows as the excerpt is pulled from the page builder content. Thats
   also why it looks strange in the excerpt.
 * So seeing as I don’t have this area in my page editor, how can i remove or hide
   the content?
 * Thank you
 *  [Luis Méndez Alejo](https://wordpress.org/support/users/gnumax/)
 * (@gnumax)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13031663)
 * Hi Eyedia,
 * Check please: [https://monosnap.com/file/tv9UQCBOwxjucABN3414HizrgCNIm6](https://monosnap.com/file/tv9UQCBOwxjucABN3414HizrgCNIm6)
 * Check to see if you have it activated.
 * And say which exact version of Sensei LMS you have installed
 * 😉
 *  Thread Starter [eyedia](https://wordpress.org/support/users/eyedia/)
 * (@eyedia)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13031678)
 * I can confirm the excerpt option is enabled in the screen options: [https://imgur.com/bQ7Y12s](https://imgur.com/bQ7Y12s)
 * Here are my version: Sensei LMS Version: 3.1.1
 *  [Luis Méndez Alejo](https://wordpress.org/support/users/gnumax/)
 * (@gnumax)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13031823)
 * Hi Eyedia,
 * It seems to me you’re using Gutenberg in addition to Page Builder
 * [https://monosnap.com/file/GSGeXWWe5hCdNt0sEt5chixMacqkpL](https://monosnap.com/file/GSGeXWWe5hCdNt0sEt5chixMacqkpL)
 * See in the sidebar [https://monosnap.com/file/eU6G0gUJfvSYz8DtARJhjuviG0p8LR](https://monosnap.com/file/eU6G0gUJfvSYz8DtARJhjuviG0p8LR)
 * 😉
 *  Thread Starter [eyedia](https://wordpress.org/support/users/eyedia/)
 * (@eyedia)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13031827)
 * aaaah I see it now thank you!
 * But there is no content in the excerpt area anyways?
 * > [View post on imgur.com](https://imgur.com/wYyefSg)
 *  [Luis Méndez Alejo](https://wordpress.org/support/users/gnumax/)
 * (@gnumax)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13031838)
 * Hi Eyedia,
 * If there is no content it will not be shown on the Course page or in the Lesson
   if the previous one has not been completed.
 * [https://monosnap.com/file/OPRa2k8nffy04C52J4o9vu4tGH66us](https://monosnap.com/file/OPRa2k8nffy04C52J4o9vu4tGH66us)
 * I think you should review the settings, see if you are using Page Builder or 
   Gutenberg and not both, so that you know what options you have enabled.
 * The problem is not Sensei LMS but the mess between builders, editor and others
   that you have
 * 😉
 *  Thread Starter [eyedia](https://wordpress.org/support/users/eyedia/)
 * (@eyedia)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13036547)
 * Thank you, i’ll take a look. Gutenberg is there by default so I suppose i need
   to diable it with a plugin then,
 *  Thread Starter [eyedia](https://wordpress.org/support/users/eyedia/)
 * (@eyedia)
 * [6 years ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13096713)
 * Hi Luis, So i switched to the classic editor. I now have the exerpt area showing
   at the bottom. It’s blank but still regardless shows an excerpt if you are not
   allowed to access the lesson. So it seams that even though i removed Gutenberg,
   the issue still remains. Any ideas? Thank you
 *  Plugin Author [Donna Peplinskie (a11n)](https://wordpress.org/support/users/donnapep/)
 * (@donnapep)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13166814)
 * Hi,
 * You can install the Code Snippets plugin and then add the following snippet:
 *     ```
       function remove_excerpt_for_lessons( $excerpt ) {
         if ( is_singular( 'lesson' ) ) {
       	  return '';
         }
       }
       add_filter( 'get_the_excerpt', 'remove_excerpt_for_lessons' );
       ```
   
 * Note that this will remove the excerpt for all lessons.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Remove lesson exerpt’ is closed to new replies.

 * ![](https://ps.w.org/sensei-lms/assets/icon-128x128.gif?rev=2914239)
 * [Sensei LMS - Online Courses, Quizzes, & Learning](https://wordpress.org/plugins/sensei-lms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sensei-lms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sensei-lms/)
 * [Active Topics](https://wordpress.org/support/plugin/sensei-lms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sensei-lms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sensei-lms/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [Donna Peplinskie (a11n)](https://wordpress.org/support/users/donnapep/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/remove-lesson-exerpt/#post-13166814)
 * Status: resolved