• Hi,

    in templates/archive-course.php
    I don’t want to use LearnPress Ajax loading on the course page that’s why I just removed this condition:

    if ( lp_is_archive_course_load_via_api() ) {
        echo '<div class="lp-archive-course-skeleton" style="width:100%">';
        echo lp_skeleton_animation_html( 10, 'random', 'height:20px', 'width:100%' );
        echo '</div>';
    } else { }

    and keep only

    if ( have_posts() ) {
        while ( have_posts() ) :
            the_post();
    
            learn_press_get_template_part( 'content', 'course' );
    
        endwhile;
    } else {
        LP()->template( 'course' )->no_courses_found();
    }

    this part.

    Now it’s showing only one course.

    Would you please help me to fix this!

    Regards

    • This topic was modified 2 years, 7 months ago by Sakib Hasan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi,

    You can override this hook, change the 1 to 0
    apply_filters( 'lp/template/archive-course/enable_lazyload', 1 );
    We will release a new version and have the option to allow on/off ajax on the archive page soon.

    Thanks

    Thread Starter Sakib Hasan

    (@sakibhasan)

    Thanks a lot!

    We will release a new version and have the option to allow on/off ajax on the archive page soon.

    It will be better!

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘LearnPress Course page showing 1 course only’ is closed to new replies.