- This topic has 9 replies, 4 voices, and was last updated 2 years, 9 months ago by Tom.
-
AuthorPosts
-
June 9, 2021 at 8:49 am #1816456Martin
Hi,
Using Sensei LMS plugin but several pages do not respond to disabling elements or changing the layout to without sidebar.
I disabled all plugins and checked but it only seems to be a problem iwthin Sensei and Generate Press.Any extra functions to add to fix this?
Thank you,
June 9, 2021 at 10:20 am #1816533DavidStaffCustomer SupportHi there,
can you share a link to a page where we can see the problem? Most likely Sensei is using its own templates – but we can take a look
June 9, 2021 at 10:39 am #1816547MartinHi David,
Thank you!
https://www.canadagogreen.com/courses-overview/
You will notice the sidebar pushed downwards. However, this courses page should not have a sidebar.
With the Sensei LMS documentation there is some support for compatibily issues and they provide the following function:
add_action( 'after_setup_theme', 'declare_sensei_support' ); function declare_sensei_support() { add_theme_support( 'sensei' ); }
I added this one but no change.
June 9, 2021 at 5:40 pm #1816811ElvinStaffCustomer SupportHi Martin,
Can you try making a Layout Element that disables the sidebar using this display rule location?
https://share.getcloudapp.com/Z4uKL2nYI tried replicating the layout by installing Sensei LMS on my sandbox site and this seems to work.
I didn’t need to apply the snippet you’ve provided.
Let us know how it goes.
June 10, 2021 at 10:20 am #1817815MartinHey Elvin,
Thanks for working on this!
Yes, I already have a Layout Element with no sidebar, plus no Top Bar and no Main Navigation.
https://ibb.co/HPMvtrk
https://ibb.co/Yf2HQz8
https://ibb.co/q1QGhd2I think only the pages that are overridden by the LMS only do not follow the layout element, like Courses overview page: https://www.canadagogreen.com/courses-overview/
Inside the course: https://www.canadagogreen.com/course/registered-installer/ it actually works well.
Thanks,
June 10, 2021 at 6:53 pm #1818076ElvinStaffCustomer SupportAh yeah now I see the difference.
I did a comparison of DOM structure w/ your site and my sandbox
On my sandbox, here’s the page source –
https://share.getcloudapp.com/nOuPeQER (doesn’t get identified as archive page)
https://share.getcloudapp.com/qGu5KYj5On your site, here’s the structure –
https://share.getcloudapp.com/wbu6W51Z (different selectors, the page is identified as archive page)
https://share.getcloudapp.com/12u4NQxw (structure is different)As David mentioned, it seems like Sensei LMS is using its own template.
But what’s strange here is that it works on my end, meaning there may be something customized on your site that prevented the layout element from working.
Can you share the Sensei LMS version you’re using? My sandbox site uses Version 3.11.0.
June 11, 2021 at 10:16 am #1819005MartinHi Elvin,
I have the same version (3.11.0).
At your sandbox are you checking the Courses page? on that page I added the Learner Courses block from Sensei
https://www.canadagogreen.com/courses/Sense offers the following documentation for theme compatibility: https://senseilms.com/documentation/enabling-theme-support/
Is this a wrapper conflict with their template and generatpress? How to code into the functions and prevent them to override the theme. By the end of the page they describe how to take control of the wrappers.
Thanks again for your great support!!
June 12, 2021 at 8:33 pm #1820185TomLead DeveloperLead DeveloperHi there,
This is an issue with plugins that provide their own theme templates – not all themes are the same and it’s likely the structure can clash like this.
Do you have any custom functions/templates added right now? It seems they’re adding their own
content
div (usually added by the theme), and they seem to be adding the sidebar in there as well, maybe.I read their documentation but I didn’t see – is it possible to overwrite their template completely?
June 14, 2021 at 1:23 pm #1822084MartinThanks Tom! Will check if possible to overwrite their template, if not, will change to another LMS.
Thank you all for your support!
June 15, 2021 at 7:50 pm #1823599TomLead DeveloperLead DeveloperNo problem – let us know how it goes 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.