Site logo

Archived topic

Our old friend, LifterLMS :)

6 replies · Started by Lyle on December 10, 2017

Viewing posts 1–7 of 7

Hi Tom,

Looking into this again and I am wondering if there is some "magic code" that can make the right sidebar on the Course and Membership Catalog pages appear on the right, as opposed to below the contents and aligned left, of these as they are now displayed.

I tried every selector that I thought may do the job, but alas, to no avail :)

Note that the Lifter Labs plugin does the job for the Course Syllabus and Course Progress in their respective locations :)

Cheers!
Lyle

PS > this is free hosting so please be patient for the first page load :)

Something like this might do the trick:

add_action( 'lifterlms_before_main_content', 'tu_llms_content_wrapper_open' );
function tu_llms_content_wrapper_open() {
?>
    <div id="primary" <?php generate_content_class();?>>
        <main id="main" <?php generate_main_class(); ?>>
            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	        <div class="inside-article">
    <?php
}

add_action( 'lifterlms_after_main_content', 'tu_llms_content_wrapper_close' );
function tu_llms_content_wrapper_close() {
?>
                </div><!-- .inside-article -->
            </article><!-- #post-## -->
        </main><!-- #main -->
    </div><!-- #primary -->
<?php
}

oops! remove the "e" from the user name :)

PERFECT! :)

Thanks you Tom! :)

You're welcome! :)

oh man Tom, you're awesome.

Haha, thank you!

This archived topic is closed to new replies.