Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasplevy/003077d6f857aba3ee1e453d617c415f to your computer and use it in GitHub Desktop.
Save thomasplevy/003077d6f857aba3ee1e453d617c415f to your computer and use it in GitHub Desktop.
<?php // don't copy this line to your functions.php file
add_action( 'lifterlms_before_main_content', 'my_content_wrapper_open', 10 );
add_action( 'lifterlms_after_main_content', 'my_content_wrapper_close', 10 );
function my_content_wrapper_open() {
echo '<section class="my-wrapper-class" id="main">';
}
function my_content_wrapper_close() {
echo '</section>';
}
<?php // don't copy this line to your functions.php file
remove_action( 'lifterlms_before_main_content', 'lifterlms_output_content_wrapper', 10 );
remove_action( 'lifterlms_after_main_content', 'lifterlms_output_content_wrapper_end', 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment