Skip to content

Instantly share code, notes, and snippets.

@shemul49rmc
shemul49rmc / Optimize Blogger Title Tag
Created October 28, 2013 12:20
Optimize Blogger Title Tag
<!-- Start iamshemul optimize Blogger Title Tag -->
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<title><data:blog.pageTitle/></title>
<b:else/>
<title><data:blog.pageName/><b:if cond='data:blog.pageName'> - </b:if><data:blog.title/></title>
</b:if>
<!-- End iamshemul optimize Blogger Title Tag –>
@shemul49rmc
shemul49rmc / Add jQuery Facebook Popup Like Box For Blogger
Last active December 26, 2015 18:39
Add jQuery Facebook Popup Like Box For Blogger
<!-- http://iamshemul.com/?p=933 Pop up Facebook Likebox Code Start -->
<style>#fblikepop{background-color:#fff;display:none;position:fixed;top:200px;_position:absolute; /* hack for IE 6*/width:450px;border:10px solid #6F6F6F;z-index:200;-moz-border-radius: 9px;-webkit-border-radius: 9px;margin:0pt;padding:0pt;color:#333333;text-align:left;font-family:arial,sans-serif;font-size:13px;}#fblikepop body{background:#fff none repeat scroll 0%;line-height:1;margin:0pt;height:100%;}.fbflush{cursor: pointer;font-size:11px !important;color:#FFF !important;text-decoration:none !important;border:0 !important;}#fblikebg{display:none;position:fixed;_position:absolute; /* hack for IE 6*/height:100%;width:100%;top:0;left:0;background:#000000;z-index:100;}#fblikepop #closeable{float:right;margin:7px 15px 0 0;}#fblikepop h1{background:#6D84B4 none repeat scroll 0 0;border-top:1px solid #3B5998;border-left:1px solid #3B5998;border-right:1px solid #3B5998;color:#FFFFFF !important;font-size:14px !important;font-weight:normal !imp
@shemul49rmc
shemul49rmc / Make Comment Authors Link Open in New Tab
Last active December 26, 2015 20:39
Make Comment Authors Link Open in New Tab
@shemul49rmc
shemul49rmc / Customize the Genesis Comment Button Text
Created October 29, 2013 12:01
Customize the Genesis Comment Button Text
//**Customize the Genesis Comment Button Text**http://iamshemul.com/?p=2395**//
function change_comment_form_submit_button_text( $defaults ) {
$defaults['label_submit'] = 'Submit Comment';
return $defaults;
}
add_filter( 'comment_form_defaults', 'change_comment_form_submit_button_text' );
@shemul49rmc
shemul49rmc / Add Custom Footer
Created October 29, 2013 12:06
Add Custom Footer
@shemul49rmc
shemul49rmc / Modify “Read More…” Text
Created October 29, 2013 12:11
Modify “Read More…” Text
/**Modify “Read More…” Text**http://iamshemul.com/?p=2395 **/
add_filter( 'excerpt_more', 'child_read_more_link' );
add_filter( 'get_the_content_more_link', 'child_read_more_link' );
add_filter( 'the_content_more_link', 'child_read_more_link' );
function child_read_more_link() {
return '&#x2026; <a class="more-link" href="' . get_permalink() . '" rel="nofollow">Continue Reading &#x2026;</a>';}
@shemul49rmc
shemul49rmc / Display Previous and Next Links After Comment Form
Created October 29, 2013 12:15
Display Previous and Next Links After Comment Form
@shemul49rmc
shemul49rmc / Edit Comment Form
Last active December 26, 2015 21:09
Edit Comment Form
/** Edit comments form *http://iamshemul.com/?p=2395*/
function modified_comment_form_args($args) {
$args['title_reply'] = 'Tell us what you\'re thinking...';
$args['comment_notes_before'] = ' <p class="comment-policy">All comments are moderated.Please Do not Spam</p>
<p class="required"><small>* Denotes required field.</small></p>';
$args['comment_field'] = '<p class="comment-form-comment">' .
'<textarea id="comment" name="comment" cols="45" rows="8" tabindex="4" aria-required="true"></textarea>' .
'</p><!-- #form-section-comment .form-section -->';
return $args;
}
@shemul49rmc
shemul49rmc / Add a Comment Policy Box Before Comment Form
Created October 29, 2013 12:24
Add a Comment Policy Box Before Comment Form
//* 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
}
@shemul49rmc
shemul49rmc / Modify Size of Comments Gravatar
Created October 29, 2013 12:38
Modify Size of Comments Gravatar
//Modify Size of Comments Gravatar*http://iamshemul.com/?p=2395*//
function child_comment_list_args( $args ) {
return array( 'type' => 'comment', 'avatar_size' => 65, 'callback' => 'genesis_comment_callback' );
}
add_filter( 'genesis_comment_list_args', 'child_comment_list_args' );