Created
August 1, 2017 16:29
-
-
Save leftlane/d3a6c3d9a9e67a0b3be24b9c06486287 to your computer and use it in GitHub Desktop.
Custom Single Lesson Page Layout used on WP101.com
This file contains hidden or 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 | |
/* | |
* This file adds the custom tutorial post type single post template. | |
*/ | |
//* Add custom body class to the head | |
add_filter( 'body_class', 'centric_add_body_class' ); | |
function centric_add_body_class( $classes ) { | |
$classes[] = 'centric-pro-tutorial'; | |
return $classes; | |
} | |
/*-----------------------------------------------------------------------------------*/ | |
// Customizations for Tutorial Pages | |
/*-----------------------------------------------------------------------------------*/ | |
//* Enqueue Custom Script for Tutorials | |
wp_enqueue_script( 'centric-global', get_bloginfo( 'stylesheet_directory' ) . '/js/tutorialpages.js', array( 'jquery' ), '1.0.0', true ); | |
remove_action( 'genesis_before_post_content', 'genesis_post_info' ); | |
remove_action( 'genesis_after_content', 'genesis_get_sidebar' ); | |
remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 ); | |
add_action( 'genesis_before_sidebar_widget_area', 'wp101_next_prev_post_nav' ); | |
add_action( 'genesis_before_sidebar_widget_area', 'wp101_video_details' ); | |
add_action( 'genesis_after_content', 'get_tutorial_sidebar' ); | |
add_action( 'genesis_entry_footer', 'get_ad' ); | |
add_action( 'genesis_after_header', 'get_video_tutorial' ); | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment