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
// Register Custom Widget | |
genesis_register_sidebar( array( | |
'id' => 'custom-widget', | |
'name' => __( 'My Custom Widget', 'child' ), | |
'description' => __( 'This Is My Custom Widget Area.', 'child' ), | |
) ); | |
// Hook Custom Widget Before Content On The Home Page Only | |
add_action( 'genesis_before_content_sidebar_wrap', 'after_menu_widget', 9 ); | |
function after_menu_widget() { |
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
function display_slider_after_content() { | |
if (is_single()) { | |
echo do_shortcode('[easingsliderlite]'); | |
} | |
}; | |
add_action('genesis_after_post_content', 'display_slider_after_content'); |
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
function content_after_header() { | |
echo ( '<div class="after-header">Add Text Here To Display Content After Header</div>' ); | |
} | |
add_action('genesis_after_header', 'content_after_header'); |
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
function text_before_comments() { | |
echo '<div class="comments-text">Add Text</div>'; | |
}; | |
add_action('genesis_after_comments', 'text_before_comments'); |
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
/** | |
* @author Brad Dalton - WP Sites | |
* | |
* @link http://wpsites.net/web-design/ads-specific-paragraph-single-posts/ | |
*/ | |
add_filter( 'the_content', 'wpsites_adsense_middle_content' ); | |
function wpsites_adsense_middle_content( $content ) { | |
if( is_single() && in_category ('7') ) | |
return $content; |
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 Column Classes to Display Posts Shortcodes | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/code/add-column-classes-to-display-posts-shortcode | |
* | |
* @param array $classes | |
* @param object $post | |
* @param object $query | |
* @return array $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
function wpsites_content_columns_before_posts() { | |
echo '<div class="one-half first">This is an example of one half first content columns.</div>'; | |
echo '<div class="one-half">This is an example of one half content columns.</div>'; | |
}; | |
add_action('genesis_before_post', 'wpsites_content_columns_before_posts'); | |