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
//* Add last updated date to the post info in entry header (requires HTML5 theme support) | |
add_filter( 'genesis_post_info', 'sk_post_info_filter' ); | |
function sk_post_info_filter($post_info) { | |
if (get_the_modified_time() != get_the_time()) { | |
$post_info = $post_info . '<br/>Last updated on: ' . the_modified_date('F j, Y', '', '', false); | |
} | |
return $post_info; | |
} |
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 //Do not include opening php tag | |
add_filter( 'theme_page_templates', 'bourncreative_remove_page_templates' ); | |
/** | |
* Remove Genesis blog and archive templates from page templates dropdown. | |
* | |
* @author Brian Bourn | |
* @link http://www.bourncreative.com/remove-genesis-blog-archive-page-templates/ | |
* | |
* @param array $templates List of templates. |
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 | |
// Don't include the <?php above | |
add_action( 'after_setup_theme', 'prefix_register_split_sidebars', 5 ); | |
/** | |
* Register the two widget areas that make up our visually separated sidebar. | |
* | |
* @author Gary Jones | |
* @link http://gamajo.com/split-sidebar-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
jQuery(document).ready(function($){ | |
// gravity forms custom placeholders | |
$('#inner li.gfield .gfield_label').click(function(){ | |
$(this).next('.ginput_container').find('input[type="text"], textarea').focus(); | |
}) | |
$('#inner .ginput_container input[type="text"], #inner .ginput_container textarea') | |
.focus(function(){ | |
$(this).closest('.ginput_container').prev('.gfield_label').hide(); |
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
.svn* | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
.gitignore | |
Icon? | |
ehthumbs.db | |
Thumbs.db |
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
// Remove WooCommerce menu.css on WP 3.8+ | |
add_action( 'admin_print_styles', 'wpex_remove_woocommerce_admin_menu_styles' ); | |
if ( ! function_exists('wpex_remove_woocommerce_admin_menu_styles') ) { | |
function wpex_remove_woocommerce_admin_menu_styles() { | |
global $wp_version; | |
if ( $wp_version >= 3.8 ) { | |
wp_dequeue_style( 'woocommerce_admin_menu_styles' ); | |
} | |
} | |
} |
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 | |
/** | |
* Uses a query string (color) to apply a body class. | |
* | |
* @param array $classes | |
* @return array | |
*/ | |
function ja_dynamic_body_class( $classes ){ | |
if ( empty( $_GET['color'] ) |
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 | |
/** | |
* Some tweaks to the Genesis post info for SEO purposes. | |
* | |
* This set of functions are designed to change the output of the Genesis post info | |
* to reflect the date a post was updated rather than the date it was published. A | |
* function to set a custom author page is also included and is entirely optional. | |
* | |
* @author FAT Media, LLC | |
* @link http://auditwp.com/genesis-post-info-seo/ |
OlderNewer