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( 'genesis_breadcrumb_args', 'child_breadcrumb_args' ); | |
/** | |
* Amend Genesis breadcrumb options. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/modify-breadcrumb-display/ | |
* | |
* @param array $args Default breadcrumb arguments. |
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( 'genesis_post_date_shortcode', 'child_post_date_shortcode', 10, 2 ); | |
/** | |
* Customize Post Date format and add extra markup for CSS targeting. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/style-post-info/ | |
* | |
* @param string $output Current HTML markup. |
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( 'genesis_post_meta', 'child_post_meta_filter' ); | |
/** | |
* Amend the post meta to change the wording for comments. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/change-comment-count/ | |
* | |
* @param string $post_meta HTML markup, likely with shortcodes. |
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 above <?php | |
add_filter( 'genesis_post_comments_shortcode', 'prefix_post_comments_shortcode' ); | |
/** | |
* Amend the post comments shortcode to add extra markup for styling. | |
* | |
* @author Gary Jones | |
* @link http://gamajo.com/style-comment-number/ |
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
body, | |
h2 a, | |
h2 a:visited, | |
#title a, | |
.menu a, | |
.widget-area h4 a, | |
#footer a { | |
color: #333; | |
} |
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
/* List Styles | |
------------------------------------------------------------ */ | |
ol li { | |
list-style-type: decimal; | |
} | |
.archive-page ul li, | |
.entry-content ul li { | |
list-style-type: square; |
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
# Increase the memory usage. | |
# If you get an error after adding this, try 64M or 32M instead. | |
php_value memory_limit "128M" | |
# Add syntax highlighting | |
AddType application/x-httpd-php-source .phps | |
# JavaScript | |
# Normalize to standard type (it's sniffed in IE anyways) | |
# tools.ietf.org/html/rfc4329#section-7.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 | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'gmj_category_listings' ); | |
/** | |
* Display linked categories and the posts within those categories. | |
* | |
* @author Gary Jones | |
* @link https://gist.github.com/1747188 | |
*/ |
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( 'genesis_post_content', 'child_add_pinterest_link', 15 ); | |
/** | |
* Add pinterest link after post. | |
* | |
* Conditionally limited to single post. Remove the first conditional | |
* to make it show up on archive pages too. | |
* | |
* @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
# Contains a list of potential solutions to amend and investigate later. | |
# http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html | |
RewriteEngine on | |
RewriteBase / | |
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml |