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_settings_defaults', 'custom_prose_settings_defaults' ); | |
/** | |
* Edit default Prose design settings values. | |
* | |
* These values are used when options are reset, or an invalid value is submitted. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/set-prose-defaults/ |
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_settings_defaults', 'custom_prose_settings_defaults' ); | |
/** | |
* Add default Prose design settings values. | |
* | |
* These values are used when options are reset, or an invalid value is submitted. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/set-prose-defaults/ |
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
/*! My CSS comment here */ |
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_theme_support( 'prose-design-settings' ); |
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( 'post_class', 'custom_post_classes' ); | |
/** | |
* Add a class of "top" to the first post, and "odd"/"even" classes as appropriate. | |
* | |
* @global int $loop_counter Counts the number of times we do the loop. | |
* | |
* @param array $classes Existing array of post classes. | |
* |
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_comment_form_args', 'child_remove_aria_required' ); | |
/** | |
* Remove aria-required attributes from comment form. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/remove-aria-required-attribute/ | |
* | |
* @param array $args Comment form 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 | |
remove_action( 'genesis_doctype', 'genesis_do_doctype' ); | |
add_action( 'genesis_doctype', 'child_do_doctype' ); | |
/** | |
* Include Facebook Open Social namespaces. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/modify-doctype/ | |
*/ |
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_doctype', 'genesis_do_doctype' ); | |
add_action( 'genesis_doctype', 'child_do_doctype' ); | |
/** | |
* Switch to XHTML 1.0 Strict doctype. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/modify-doctype/ | |
*/ |
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 | |
// For Genesis 2.0.0 and later: | |
add_filter( 'genesis_superfish_args_url', 'prefix_superfish_args_url' ); | |
/** | |
* Filter in URL for custom Superfish arguments. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/change-superfish-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_ping_list_args', 'child_ping_list_args' ); | |
/** | |
* Take the existing arguments, and amend one that specifies a custom callback. | |
* | |
* Tap into the list of arguments applied at genesis/lib/functions/comments.php. | |
* | |
* @see child_list_pings() Callback for displaying trackbacks. | |
* |