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
License: GPL-2.0+ | |
License URI: http://www.opensource.org/licenses/gpl-license.php |
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_nav_items', 'child_remove_navigation_titles' ); | |
/** | |
* Remove all title attributes on Genesis-created navigation menus. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/remove-genesis-navigation-titles | |
* | |
* @param string $menu HTML markup of menu list items |
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 | |
// Optionally remove from WP custom menus too | |
add_filter( 'wp_nav_menu_items', 'child_remove_primary_navigation_titles', 10, 2); | |
add_filter( 'genesis_nav_items', 'child_remove_primary_navigation_titles', 10, 2 ); | |
/** | |
* Remove all title attributes on Genesis-created navigation menus in the primary location. | |
* | |
* @author Gary Jones |
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
.gist-highlight { | |
border-left: 4ex solid #eaeaea; | |
position: relative; | |
} | |
.gist-highlight pre { | |
counter-reset: linenumbers; | |
} | |
.gist-highlight pre div:before { |
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 | |
/* | |
Plugin Name: oEmbed gist | |
Plugin URI: http://firegoby.theta.ne.jp/wp/oembed-gist | |
Description: Embed source from gist.github. | |
Author: Takayuki Miyauchi (THETA NETWORKS Co,.Ltd) | |
Version: 1.2.0-gj | |
Author URI: http://firegoby.theta.ne.jp/ | |
*/ |
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( 'wp_print_styles', 'child_add_ie7_style_sheet', 200 ); | |
/** | |
* Enqueue an IE-specific style sheet (for all browsers). | |
* | |
* @author Gary Jones | |
* @link https://garyjones.io/ie-conditional-style-sheets-wordpress | |
*/ | |
function child_add_ie7_style_sheet() { |
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_home_crumb', 'child_amend_home_breadcrumb_link' ); // Genesis >= 1.5 | |
add_filter ( 'genesis_breadcrumb_homelink', 'child_amend_home_breadcrumb_link' ); // Genesis =< 1.4.1 | |
/** | |
* Amend Home breadcrumb link. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/modify-genesis-breadcrumb-home-link/ | |
* |
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_shortcode( 'post_terms', 'child_post_terms_shortcode' ); | |
/** | |
* Add linked post taxonomy terms via shortcode. | |
* | |
* Not needed since Genesis 1.4.2 as it exists in Genesis. | |
* @author Ade Walker and Gary Jones | |
* @link http://code.garyjones.co.uk/post-taxonomy-terms-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
<?php | |
add_filter( 'prose_font_family_options', 'custom_prose_font_family_options' ); | |
/** | |
* Add new font options. | |
* | |
* Ensure that double-quotes wrap the font stack variable, with single quotes | |
* wrap multi-word fonts. | |
* | |
* @param array $options Font options ( 'Display Name', 'font stack' ). |
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('prose_font_family_options', 'custom_prose_font_family_options'); | |
/** | |
* Edit a Prose font stack option. | |
* | |
* Ensure that double-quotes wrap the font stack variable, with single quotes | |
* wrap multi-word fonts. | |
* | |
* @param array $options Font options ( 'Display Name', 'font stack' ). |