[Resolved] Sensei LMS

Home Forums Support [Resolved] Sensei LMS

Home Forums Support Sensei LMS

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1816456
    Martin

    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,

    #1816533
    David
    Staff
    Customer Support

    Hi 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

    #1816547
    Martin

    Hi 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.

    #1816811
    Elvin
    Staff
    Customer Support

    Hi Martin,

    Can you try making a Layout Element that disables the sidebar using this display rule location?
    https://share.getcloudapp.com/Z4uKL2nY

    I 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.

    #1817815
    Martin

    Hey 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/q1QGhd2

    I 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,

    #1818076
    Elvin
    Staff
    Customer Support

    Ah 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/qGu5KYj5

    On 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.

    #1819005
    Martin

    Hi 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!!

    #1820185
    Tom
    Lead Developer
    Lead Developer

    Hi 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?

    #1822084
    Martin

    Thanks Tom! Will check if possible to overwrite their template, if not, will change to another LMS.

    Thank you all for your support!

    #1823599
    Tom
    Lead Developer
    Lead Developer

    No problem – let us know how it goes 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.