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_action( 'init', 'cd_register_shortcode' ); | |
| /** | |
| * Register shortcode with the theme | |
| */ | |
| function cd_register_shortcode() { | |
| add_shortcode( '404-search', 'cd_search_shortcode' ); | |
| } |
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
| jQuery(document).ready(function($) { | |
| $('input').focusin(function() { | |
| input = $(this); | |
| input.data('place-holder-text', input.attr('placeholder')) | |
| input.attr('placeholder', ''); | |
| }); | |
| $('input').focusout(function() { | |
| input = $(this); |
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
| jQuery(function( $ ){ | |
| $('.flexslider').flexslider({ | |
| animation: "slide", | |
| // pausePlay: true | |
| pauseOnHover: true | |
| }); | |
| }); |
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_filter( 'acf/load_field', 'mytheme_set_field_name' ); | |
| function mytheme_set_field_name( $field ){ | |
| if( is_admin() ){ | |
| $screen = get_current_screen(); | |
| if( $screen->id == 'acf-field-group' ) | |
| return $field; |
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 | |
| /** | |
| * Set default Genesis Theme Options | |
| * | |
| * @author Joshua David Nelson, josh@joshuadnelson.com | |
| */ | |
| add_filter( 'genesis_theme_settings_defaults', 'jdn_theme_settings' ); | |
| function jdn_theme_settings( $defaults ) { | |
| $defaults = array( | |
| 'update' => 1, |
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 above. | |
| add_action('widgets_init', 'cabeymer_unregister_widgets', 10); | |
| /** | |
| * Unregister Various Widgets | |
| * Clean up your widgets.php page | |
| * Single comment out the ones you want to keep | |
| */ |
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
| //* Add support for custom header | |
| add_theme_support( 'custom-header', array( | |
| 'width' => 1000, // width of the image | |
| 'height' => 70, // height of the image | |
| 'header-selector' => '.site-header', // sets it to the <header> element | |
| 'wp-head-callback' => 'lunarwp_modify_custom_header', // callback so we can modify the css added to the <head> | |
| 'header-text' => false, | |
| ) ); | |
| /** |
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 | |
| /** | |
| * Simple Grid helper functions. | |
| * | |
| * @package SimpleGrid | |
| * @subpackage Genesis | |
| * @copyright Copyright (c) 2014, Flagship, LLC | |
| * @license GPL-2.0+ | |
| * @since 1.0.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
| add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 ); | |
| function woo_reorder_tabs( $tabs ) { | |
| $tabs['reviews']['priority'] = 5; // Reviews first | |
| $tabs['description']['priority'] = 10; // Description second | |
| $tabs['additional_information']['priority'] = 15; // Additional information third | |
| return $tabs; | |
| } |