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 | |
// Add for Taxonomies | |
function wsm_add_for_taxonomies( $display, $meta_box, $taxonomy ) { | |
if ( 'taxonomy' !== $meta_box['show_on']['key'] ) | |
return $display; | |
// Get the post's ID so we can see if it has ancestors | |
if( isset( $_GET['post'] ) ) $post_id = $_GET['post']; | |
elseif( isset( $_POST['post_ID'] ) ) $post_id = $_POST['post_ID']; |
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 | |
// Modify the author box title | |
add_filter('genesis_author_box_title', 'child_author_box_title'); | |
function child_author_box_title($title) { | |
$title = sprintf( '<h3>%s %s</h3>', __( 'About', 'genesis' ), get_the_author() ) ); | |
return $title; | |
} |
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
/* | |
Theme Name: Kathryn | |
Description: Katheryn is a clean professional theme especially for accountants built on the <a href="http://web-savvy-marketing.com/go/studiopress/">Genesis framework</a>. | |
Author: Web Savvy Marketing | |
Author URI: http://www.web-savvy-marketing.com/ | |
Version: 1.0.8 | |
Template: genesis | |
*/ |
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 | |
// Don't copy the opening <?php tag above | |
// Add page title to blog page template | |
add_action( 'genesis_before', 'wsm_blog_page_title' ); | |
function wsm_blog_page_title() { | |
if ( is_page_template( 'page_blog.php' ) ) { | |
add_action( 'genesis_before_content', 'wsm_show_blog_page_title_text', 2 ); | |
} | |
} |
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 | |
do_action( 'genesis_home' ); | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'wsm_custom_loop' ); | |
function wsm_custom_loop() { | |
global $paged; | |
$args = ( array( | |
'category_in' => 3, // ID of category to be displayed |
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 | |
// Add Read More button to blog page and archives | |
add_filter( 'excerpt_more', 'wsm_add_excerpt_more' ); | |
add_filter( 'get_the_content_more_link', 'wsm_add_excerpt_more' ); | |
add_filter( 'the_content_more_link', 'wsm_add_excerpt_more' ); | |
function wsm_add_excerpt_more( $more ) { | |
return '<div class="more-link"><a href="' . get_permalink() . '" rel="nofollow"><span>Read More</span></a></div>'; | |
} |
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
/* Column Classes | |
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css | |
--------------------------------------------- */ | |
.five-sixths, | |
.four-sixths, | |
.four-fifths, | |
.one-fifth, | |
.one-fourth, | |
.one-half, |
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 | |
// Add Read More button to blog page and archives | |
add_filter( 'excerpt_more', 'wsm_add_excerpt_more' ); | |
add_filter( 'get_the_content_more_link', 'wsm_add_excerpt_more' ); | |
add_filter( 'the_content_more_link', 'wsm_add_excerpt_more' ); | |
function wsm_add_excerpt_more( $more ) { | |
return '<span class="more-link"><a href="' . get_permalink() . '" rel="nofollow">Read More</a></span>'; | |
} |
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 | |
// Don't include opening php tag above | |
// Remove query strings from css and javascript links | |
add_filter('script_loader_src', 'wsm_remove_script_version', 15, 1); | |
add_filter('style_loader_src', 'wsm_remove_script_version', 15, 1); | |
function wsm_remove_script_version( $src ) { | |
$parts = explode( '?', $src ); | |
return $parts[0]; | |
} |
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 | |
// Do not copy opening php tag above | |
add_action( 'wp_enqueue_scripts', 'wsm_custom_stylesheet', 20 ); | |
function wsm_custom_stylesheet() { | |
wp_enqueue_style( 'custom-style', get_stylesheet_directory_uri() . '/custom.css' ); | |
} |
OlderNewer