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_action('genesis_after_post_content', 'adsense_after_posts'); | |
function adsense_after_posts() { | |
if (is_single() ) | |
echo '<div class="adsense-style">Adsense goes here</div>'; | |
} |
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 add_text_genesis() { | |
echo '<div class="add-text">Add Text</div>'; | |
} | |
add_action('genesis_header', 'add_text_genesis'); |
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 after_title_text() { | |
echo '<div class="title-text">Add Text after your titles but before your content here</div>'; | |
} | |
add_action('genesis_after_post_title', 'after_title_text'); |
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 add_text_genesis() { | |
if(is_home()) | |
echo '<div class="home-text">Add Text or HTML Here</div>'; | |
} | |
add_action('genesis_header', 'add_text_genesis'); |
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 after_title_text() { | |
if(is_single() ) | |
echo '<div class="single-title">Add content after your titles but before your content here</div>'; | |
} | |
add_action('genesis_after_post_title', 'after_title_text'); |
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 After Post Widget - 2013 Child Theme | |
function wpsites_after_post_widget () { | |
register_sidebar( array( | |
'id' => 'after-post', | |
'name' => __( 'After Post', 'twentythirteenchild' ), | |
'description' => __( 'This is the after post widget.', 'twentythirteenchild' ), | |
) ); | |
} |
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 if ( dynamic_sidebar('after-post') ) : | |
else : | |
?> | |
<?php endif; ?> |
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
.after-post { | |
background-color: #f2f2f2; | |
line-height: 1.5; | |
margin-bottom: 16px; | |
margin-bottom: 1rem; | |
padding: 16px; | |
padding: 1rem; | |
} |
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 header_text_genesis() { | |
echo '<div class="header-text">Add Text</div>'; | |
}; | |
add_action('genesis_header_right', 'header_text_genesis'); |