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
😉 Regards!
Thread Starter
eyedia
(@eyedia)
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?
Hi Eyedia,
The screenshot was for you to see the example
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
The excerpt is only visible by accessing the Lesson from the dahsboard > Lessons & edit the lesson
😉
Thread Starter
eyedia
(@eyedia)
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
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
Hi Eyedia,
Check please: 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
(@eyedia)
I can confirm the excerpt option is enabled in the screen options: https://imgur.com/bQ7Y12s
Here are my version: Sensei LMS Version: 3.1.1
Thread Starter
eyedia
(@eyedia)
aaaah I see it now thank you!
But there is no content in the excerpt area anyways?
View post on imgur.com
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
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
(@eyedia)
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
(@eyedia)
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
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.