• Resolved cristian-ungureanu

    (@cristian-ungureanu)


    Hi LifterLMS Team,

    I’m working to add compatibility with LifterLMS in a theme. I followed your documentation from here https://lifterlms.com/docs/lifterlms-sidebar-support/#code-snippet and it worked great for lessons and course page but I can’t make it work on Course Catalog. From what I’ve understood from your code, you call the sidebar in loop.php whit this action “do_action(‘lifterlms_sidebar’);” … at this hook, it’s called “lifterlms_get_sidebar” and in this function, you call “global/sidebar.php” template which calls “get_sidebar(‘llms_shop’)”.The llms_shop sidebar does not exist so it retrieves the default sidebar. If I replace ‘llms_shop’ with ‘shop’ it works ok. What am I missing?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Thomas Patrick Levy

    (@thomasplevy)

    @cristian-ungureanu,

    This exists for theme developers to add a catalog sidebar (should they choose) but LifterLMS itself does not implement sidebars on the catalog.

    If you wish to not use the sidebar on the catalog and your theme is automatically displaying a default sidebar (some themes do this but not all) you can remove the sidebar action with:

    remove_action( 'lifterlms_sidebar' );

    Hope that helps,

    Thread Starter cristian-ungureanu

    (@cristian-ungureanu)

    Ok, I understand but then what shop sidebar does because is not called anywhere? From my point of view you call a sidebar that does not exist and declare a sidebar that is not used.

    Plugin Author Thomas Patrick Levy

    (@thomasplevy)

    @cristian-ungureanu,

    It doesn’t do anything.

    It’s a placeholder so that if a theme decides it wants to display a sidebar on the catalog it can very easily by registering the llms_shop sidebar.

    Thread Starter cristian-ungureanu

    (@cristian-ungureanu)

    Got it! Thank you for your time!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘LifterLMS Integration’ is closed to new replies.