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 | |
/** | |
* Template Name: Full Width Content with Blog Posts | |
* | |
* @author Genesis Developer | |
* @link http://genesisdeveloper.me/full-width-page-content-with-blog-posts | |
* @license GPL-2.0+ | |
* @since: 0.1 | |
*/ |
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 // be sure to remove this line! | |
// Workaround for iThemes Exchange breadcrumbs issue. | |
// Strip breadcrumbs on iThemes Exchange ghost pages unless | |
// Genesis settings have enabled breadcrumbs on pages. | |
add_action( 'genesis_before_content', 'studiopress_it_exchange_breadcrumbs' ); | |
function studiopress_it_exchange_breadcrumbs() { | |
global $post; |
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 this line | |
// Add or edit the notes before the comments form | |
add_filter( 'comment_form_defaults', 'sp_add_comment_form_before' ); | |
function sp_add_comment_form_before( $defaults ) { | |
$defaults['comment_notes_before'] = '<p class="comment-notes">Your email address will not be published. Required fields are marked <span class="required">*</span></p>'; | |
return $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
.home-bottom .featuredpost .entry { | |
width: 23.875%; | |
} | |
.home-bottom.full-width .featuredpost .entry:nth-of-type(3n+1) { | |
clear: none; | |
margin-left: 1.5%; | |
} | |
.home-bottom.full-width .featuredpost .entry:nth-of-type(4n+1) { |
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
<!-- Use this button code in your Home Section 1 text widget to point to your Real Music Rocks section: --> | |
<a class="button" href="#" data-section="home-section-2">Continue Reading</a> | |
<!-- Use this button code in the Home Section 2 text widget to point to the Your Favorite Songs Matter section: --> | |
<a class="button" href="#" data-section="home-section-3">Continue Reading</a> | |
<!-- Use this button code in the Home Section 3 text widget to point to the Event Schedule section: --> | |
<a class="button" href="#" data-section="home-section-4">Event Schedule</a> | |
<!-- Finally, you can use this button code in the Footer 1 text widget to send visitors to your contact page: --> |
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 the opening PHP tag before pasting to functions.php | |
add_filter( 'agentpress_property_details', 'custom_agentpress_property_details_filter' ); | |
// Filter the property details array for property listings | |
// Replace labels such as "ZIP" with "Postcode" etc. | |
function custom_agentpress_property_details_filter( $details ) { | |
$details['col1'] = array( | |
__( 'Price:', 'apl' ) => '_listing_price', |
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 everything except for this opening line to your functions file | |
add_filter( 'wp_nav_menu_items', 'sp_add_loginout_link', 10, 2 ); | |
function sp_add_loginout_link( $items, $args ) { | |
// Change 'primary' to 'secondary' to put the login link in your secondary nav bar. | |
if ( $args->theme_location != 'primary' ) { | |
return $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 | |
//Add hAtom data to all posts and pages | |
function sp_hatom_data($content) { | |
$t = get_the_modified_time('F jS, Y'); | |
$author = get_the_author(); | |
$title = get_the_title(); | |
$content .= '<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>'; | |
return $content; | |
} | |
add_filter('the_content', 'sp_hatom_data'); |
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 to functions.php and leave the “Content” box unticked in Settings > Mandrill | |
// Be sure to omit the opening <?php tag when copying this code | |
// Add paragraph breaks to plain text notifications sent by Mandrill | |
add_filter('mandrill_payload', 'wpmandrill_auto_add_breaks'); | |
function wpmandrill_auto_add_breaks($message) { | |
$html = $message['html']; |