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 | |
// Remove the default Genesis child theme CSS | |
remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); | |
add_action( 'wp_enqueue_scripts', 'prefix_load_stylesheet' ); | |
/** | |
* Get the time the theme's CSS was last modified | |
* and use it to bust the cache by appending | |
* it to the CSS output. | |
* | |
* @author FAT Media |
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 | |
/** | |
* Change the post order for listings | |
* | |
* @author Carrie Dils | |
* @link http://www.billerickson.net/customize-the-wordpress-query/ | |
* @reference http://codex.wordpress.org/Class_Reference/WP_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
<?php | |
/** | |
* Display a repeatable group using the humanmade | |
* Custom Meta Boxes script | |
* | |
* @author FAT Media <http://youneedfat.com> | |
* @copyright Copyright (c) 2013, FAT Media, LLC | |
* @license GPL-2.0+ | |
*/ | |
// Get all the post's custom metadata |
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 | |
/** | |
* Prevent unnecessary styles from | |
* loading on the front end | |
* | |
* @author FAT Media <http://youneedfat.com> | |
* @copyright Copyright (c) 2013, FAT Media, LLC | |
* @license GPL-2.0+ | |
*/ |
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 | |
/************************************************ | |
* This is not currently working. | |
************************************************/ | |
add_action( 'pre_get_posts', 'cd_listing_sort_order' ); | |
/** | |
* Change the post order for listings | |
* | |
* @author Carrie Dils | |
* @link http://www.billerickson.net/customize-the-wordpress-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
<?php | |
add_action( 'pre_get_posts', 'prefix_reverse_post_order' ); | |
/** | |
* Reverse Post Order for Post Archives | |
* on the Genesis Framework | |
* | |
* @author FAT Media | |
* @link http://youneedfat.com/reverse-post-order-genesis-framework/ | |
* @param object $query data | |
* |
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( 'genesis_custom_loop_args', 'prefix_reverse_blog_template_order' ); | |
/** | |
* Reverse Post Order on the page_blog.php | |
* template on the Genesis Framework | |
* | |
* @author FAT Media | |
* @link http://youneedfat.com/reverse-post-order-genesis-framework/ | |
* | |
*/ |
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
/* | |
Body Element | |
---------------------------------------------------------------------------------------------------- */ | |
/* This Should Be Equal to the Height of your | |
* fixed header bar. | |
--------------------------------------------- */ | |
body { | |
padding-top: 81px; | |
padding-top: 8.1rem; /* Only Add this in Genesis 2.0 */ |
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
/* | |
Site Header | |
---------------------------------------------------------------------------------------------------- */ | |
/* This is where the magic happens. You need | |
* to assign a fixed position in order for | |
* everything else to work correctly. | |
--------------------------------------------- */ | |
.site-header { | |
position: fixed; | |
top: 0; |