Viewing 2 replies - 1 through 2 (of 2 total)
  • @wpcrafter,

    LifterLMS doesn’t have any native methods to add the short description to the course archive. However, you could easily do this by adding an action to output the description or by overriding the default template.

    The default template to override would be “templates/content-course.php” — for some info on template overriding see our documentation at https://lifterlms.com/docs/lifterlms-templates/

    To add an action, you’ll want to hook into either of the two actions below:
    add_action( ‘lifterlms_before_shop_loop_item_title’, ‘my_function’, 15 );
    add_action( ‘lifterlms_after_shop_loop_item_title’, ‘my_function’, 15 );

    The function the action triggers should simply echo out your course short description, attainable via WordPress core functions — ie: echo get_the_excerpt()

    You can play with the priorities (15 in both examples above) to determine the order of your excerpt in relation to the other items already output by LifterLMS

    Hope that helps,

    @wpcrafter,

    Marking this as resolved but if you need anything else just let me know!

    Take care,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Short description on the course list page???’ is closed to new replies.