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
<b:if cond='data:blog.pageType == "item"'> | |
<p style='color: #008000;font-weight: bold;'>How's that article? Want to share in your site? If you like it, you can link back to this article by copying one of the codes below.</p> | |
<p style='color: rgb(0, 114, 204);font-weight: bold;'>URL Of Post: | |
</p><textarea cols='60' id='url' onclick='this.focus();this.select()' readonly='readonly' rows='2' style='border:2px solid #666;background:rgb(236, 207, 207); height: 2.6em; width: 98%;' title='Click to highlight'><data:post.url/></textarea><br/> | |
<p style='color: rgb(0, 114, 204);font-weight: bold;'>HTML Link Code:</p> | |
<textarea cols='60' id='HTML-code' onclick='this.focus();this.select()' readonly='readonly' rows='2' style='border:2px solid #666;background:rgb(226, 252, 244); height: 3.6em; width: 98%;' title='Click to highlight'><a href="<data:post.url/>"><data:post.title/></a></textarea> | |
<p style='color: rgb(0, 114, 204);font-weight: bold;'>BB (forum) Link code:</p> | |
<textarea id='BB-c |
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
//* Modify the speak your mind title in comments*http://iamshemul.com/?p=2395*// | |
add_filter( 'comment_form_defaults', 'sp_comment_form_defaults' ); | |
function sp_comment_form_defaults( $defaults ) { | |
$defaults['title_reply'] = __( 'Leave a Comment' ); | |
return $defaults; | |
} |
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
//* Customize the credits*http://iamshemul.com/?p=2395*// | |
add_filter( 'genesis_footer_creds_text', 'sp_footer_creds_text' ); | |
function sp_footer_creds_text() { | |
echo '<div class="creds"><p>'; | |
echo 'Copyright © '; | |
echo date('Y'); | |
echo ' · <a href="YOUR_SITE_URL">SITE_NAME</a> ·All Rights Reserved · Powered by <a href="http://wordpress.org/">WordPress</a> Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>'; | |
echo '</p></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
//Remove the Website Field from Genesis Comments Form*http://iamshemul.com/?p=2395*// | |
add_filter( 'genesis_comment_form_args', 'wps_comment_form_args' ); | |
function wps_comment_form_args( $args ) { | |
unset( $args['fields']['url'] ); | |
return $args; | |
} |
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
//Add Genesis Comment Form Above Comments*http://iamshemul.com/?p=2395*// | |
add_action( 'genesis_before_comments' , 'wps_post_type_check' ); | |
function wps_post_type_check () { | |
if ( is_single() ) { | |
if ( have_comments() ) { | |
remove_action( 'genesis_comment_form', 'genesis_do_comment_form' ); | |
add_action( 'genesis_list_comments', 'genesis_do_comment_form' , 5 ); | |
} | |
} | |
} |
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
//* Customize the return to top of page text*http://iamshemul.com/?p=2395*// | |
add_filter( 'genesis_footer_backtotop_text', 'sp_footer_backtotop_text' ); | |
function sp_footer_backtotop_text($backtotop) { | |
$backtotop = '[footer_backtotop text="Return to Top"]'; | |
return $backtotop; | |
} |
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
//* Add a comment policy box in comments*http://iamshemul.com/?p=2395*// | |
add_action( 'genesis_after_comments', 'sp_comment_policy' ); | |
function sp_comment_policy() { | |
if ( is_single() && !is_user_logged_in() && comments_open() ) { | |
?> | |
<div class="comment-policy-box"> | |
<p class="comment-policy"><small><strong>Comment Policy:</strong>Your Comments describes you, so be nice and helpful. Please, only use your real name and Valid Email Address. All Comments are moderated, Spam Comments are deleted and IP blocked.</small></p> | |
</div> | |
<?php | |
} |