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
<?php | |
add_filter( 'pre_get_posts', 'tgm_io_cpt_search' ); | |
/** | |
* This function modifies the main WordPress query to include an array of | |
* post types instead of the default 'post' post type. | |
* | |
* @param object $query The original query. | |
* @return object $query The amended query. | |
*/ | |
function tgm_io_cpt_search( $query ) { |
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/ |
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; | |
} |
OlderNewer