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 the opening php tag shown above. Copy the code below to the end of your functions.php file. | |
//* Customize the site initials | |
add_action( 'genesis_header', 'sixteen_nine_site_initials', 5 ); | |
function sixteen_nine_site_initials() { | |
echo '<div class="site-initials"><a href="' . home_url( '/' ) . '">16.9</a></div>'; | |
} |
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 the opening php tag shown above. Copy the code below to the end of your functions.php file. | |
//* Customize the footer | |
add_action( 'genesis_header', 'sixteen_nine_custom_footer', 12 ); | |
function sixteen_nine_custom_footer() { | |
echo '<p>Proudly running on the <a href="http://www.studiopress.com/">Genesis Framework</a></p>'; | |
} |
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 the opening php tag shown above. Copy the code shown below. | |
//* Add Read More Link to Automatic and Custom Excerpts Site-wide | |
add_filter( 'the_excerpt', 'sp_read_more_custom_excerpt' ); | |
function sp_read_more_custom_excerpt( $text ) { | |
if ( strpos( $text, '[…]') ) { | |
$excerpt = str_replace( '[…]', '<a class="more-link" href="' . get_permalink() . '">[Read More…]…</a>', $text ); | |
} else { |
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 the following code to functons.php - replaces code from remove-3.php | |
/** Add the slider on the homepage above the content area */ | |
add_action('genesis_after_header', 'agentpress_include_slider'); | |
function agentpress_include_slider() { | |
if(is_front_page()) | |
dynamic_sidebar( 'slider' ); | |
} |
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
<img src="http://www.mysite.com/path/to/your/profile.jpg" alt="Profile Image" /> | |
Starbucks Addict. Nomad Theorist. Loving Husband. Sarah McLachlan Fan. Future Ironman. | |
Founder, StudioPress. Partner, Copyblogger Media. | |
<a href="http://www.mysite.com/aboutme/">More.</a> |
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 the opening php tag shown above. Copy the code shown below. | |
//* Add HTML5 markup structure | |
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); |
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 the opening php tag shown above. Copy the code shown below. | |
//* Add custom Viewport meta tag for mobile browsers | |
add_action( 'genesis_meta', 'sp_viewport_meta_tag' ); | |
function sp_viewport_meta_tag() { | |
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>'; | |
} |
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
This is an example of a widget which can be used to describe a product or service. | |
You can also use widgets such as Featured Posts, Genesis eNews and Updates, Latest Tweets or even display a Custom Menu. | |
<a href="/sample">Learn more about the Going Green theme.</a> |