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 support for custom background | |
add_theme_support( 'custom-background' ); |
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 Estimated Post Reading Time in Genesis Framework using Estimated Post Reading Time plugin | |
add_filter( 'genesis_post_info', 'afn_post_info_filter' ); | |
function afn_post_info_filter($post_info) { | |
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit] Estimated reading time: [est_time]'; | |
return $post_info; | |
} |
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
/* Button */ | |
button, | |
input[type="button"], | |
input[type="reset"], | |
input[type="submit"], | |
.button { | |
background-color: #333; | |
border: none; | |
color: #fff; |
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
/* Add an image linking to custom-link.com, centered and open in new tab */ | |
<a href="http://custom-link.com" target="_blank"><img class="aligncenter size-full" src="http://domain.com/images.jpg" alt="your-keyword" /></a> |
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
<blockquote class="twitter-tweet"><p>Traffic for <a href="http://t.co/L62SuKvy" title="http://wpspeak.com">wpspeak.com</a> seems pretty good. Now have to start with SEO. This should be fun.</p>— WPSpeak (@WPSpeak) <a href="https://twitter.com/WPSpeak/status/300476649558917121">February 10, 2013</a></blockquote> | |
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> |
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( 'wp_nav_menu_objects', 'afn_custom_menu_class' ); | |
/** | |
* Filters the first and last nav menu objects in your menus | |
* to add custom classes. | |
* | |
* @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
.avatar { | |
border-radius: 50%; | |
} |
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 { | |
background: radial-gradient(ellipse at center center , #fff8b5 0%, #f1e767 37%, #feb645 100%) repeat scroll 0 0 rgba(0, 0, 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
<?php | |
//* Display Themes CPT in Recent Posts Widget | |
add_filter('widget_posts_args', 'afn_cpt_recent_posts_widget'); | |
function afn_cpt_recent_posts_widget($params) { | |
$params['post_type'] = array('themes'); | |
return $params; | |
} |