Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Last active November 26, 2019 23:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasplevy/d6df9d000bb36ceb4158f7bab767c321 to your computer and use it in GitHub Desktop.
Save thomasplevy/d6df9d000bb36ceb4158f7bab767c321 to your computer and use it in GitHub Desktop.
<?php // don't copy this line to your functions.php file
// this will add custom content BEFORE the dynamic catalog content
add_action( 'lifterlms_archive_description', 'my_llms_catalog_description' );
// this will add custom contet AFTER the dynamic catalog content
add_action( 'lifterlms_after_main_content', 'my_llms_catalog_description' );
function my_llms_catalog_description() {
// for course catalog
if ( is_post_type_archive( 'course' ) ) {
// replace the content here with your custom html / content
echo '<p>This displays on the course catalog! Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>';
}
// for membership catalog
if ( is_post_type_archive( 'llms_membership' ) ) {
// replace the content here with your custom html / content
echo '<p>This displays on the membership catalog! Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment