Created
November 20, 2014 17:23
-
-
Save Kellylise/3aaaa823ab1b80188e3e to your computer and use it in GitHub Desktop.
Sensei single-lesson for Genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The Template for displaying all Sensei single lessons. | |
* | |
* Override this template by copying it to yourtheme/sensei/single-lesson.php | |
* | |
* @author KLM | |
* @package Sensei/Templates for Genesis and Dynamik-Gen based on Genesis Connect for WooC | |
* @version 1.0.1 | |
*/ | |
/** Remove default Genesis loop */ | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); | |
add_action( 'genesis_loop', 'klm_single_lesson_loop' ); | |
function klm_single_lesson_loop() { | |
/** | |
* sensei_before_main_content hook | |
* | |
* @hooked sensei_output_content_wrapper - 10 (outputs opening divs for the content) | |
*/ | |
do_action( 'sensei_before_main_content' ); | |
/** | |
* sensei_single_main_content hook | |
* | |
* @hooked sensei_single_main_content - 10 (outputs main content) | |
*/ | |
do_action( 'sensei_single_main_content' ); | |
do_action( 'sensei_after_main_content' ); | |
} | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment