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 | |
// do not include php tag | |
add_filter( 'post_updated_messages', 'my_post_updated_messages' ); | |
/** | |
* Callback for WordPress 'post_updated_messages' filter. | |
* | |
* @param array $messages The array of messages. | |
* @return array $messages The array of messages. | |
*/ |
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 | |
/** | |
* Callback for WordPress 'wp_enqueue_scripts' action. | |
* | |
* This callback is executed before the parent theme (TwentyTwelve) | |
* 'wp_enqueue_scripts' callback is executed. This is due to the fact | |
* that the child theme functions.php is loaded before the parent functions.php | |
* file. | |
* |
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 | |
/** | |
* Callback for WordPress 'template_redirect' action. | |
* | |
* http://codex.wordpress.org/Plugin_API/Action_Reference/template_redirect | |
* | |
* @return none | |
*/ | |
function my_custom_redirect(){ |
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
pre.line-pre:before, | |
pre.line-pre:after{ | |
content:""; | |
} | |
div.line:before, | |
div.line:after{ | |
content:""; | |
} |
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 | |
//* do not include php tags | |
add_action( 'init', 'custom_init', 11 ); | |
/** | |
* Callback for WordPress 'init' action. | |
* | |
* Remove the 'the_content' filter callback added by sharedaddy | |
* to prevent the sharing links from being appended to the posts content. | |
* |
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 | |
//* no not include php tags | |
add_action( 'genesis_after_entry', 'sharedaddy_box_genesis_after_entry', 5 ); | |
/** | |
* Callback for Genesis Framework 'genesis_after_entry' action. | |
* | |
* Create a custom box for sharedaddy links. | |
* | |
* Note: Set add_action() priority to accommodate your theme. |
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
/* sharedaddy box styling */ | |
.sharedaddy-box{ | |
background: #fff; | |
margin-bottom: 40px; | |
margin-bottom: 4rem; | |
border: solid 1px #dedede; | |
} | |
.sharedaddy-box{ |
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 | |
//* do not include php tags | |
add_filter( 'sharedaddy_box_title', 'custom_sharedaddy_box_title', 10, 2 ); | |
/** | |
* Callback for RFMeier-Genesis 'sharedaddy_box_title' filter. | |
* | |
* Alter the sharedaddy box title. | |
* | |
* @since 0.2 |
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', 'display_random_posts' ); | |
/** | |
* Callback for WordPress 'pre_get_posts' action. | |
* | |
* @link http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts | |
* @author Ryan Meier <[email protected]> | |
* | |
* @param object $query The current query object |
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 | |
/** pre Genesis 2.0 */ | |
add_action( 'genesis_after_post', 'custom_genesis_after_post' ); | |
/** Genesis 2.0+ */ | |
add_action( 'genesis_after_entry', 'custom_genesis_after_entry' ); | |
/** | |
* Callback for Genesis 'genesis_after_entry' action. | |
* |
OlderNewer