Skip to content

Instantly share code, notes, and snippets.

@shemul49rmc
shemul49rmc / JQuery Slide Out Social Share Buttons to Sidebar for Blogger
Last active December 27, 2015 02:39
JQuery Slide Out Social Share Buttons to Sidebar for Blogger
//*JQuery Slide Out Social Share Buttons to Sidebar for Blogger By iamshemul.com//
<script type="text/javascript">
/*<![CDATA[*/
jQuery(document).ready(function () {
jQuery(".hbslidebox").hover(function () {
jQuery(this).stop().animate({
left: "0"
}, "medium");
}, function () {
jQuery(this).stop().animate({
@shemul49rmc
shemul49rmc / Easily Add “Link To This Post” Widget Below Blogger Post
Created October 30, 2013 13:12
Easily Add “Link To This Post” Widget Below Blogger Post
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<p style='color: #008000;font-weight: bold;'>How&#39;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'>&lt;a href=&quot;<data:post.url/>&quot;&gt;<data:post.title/>&lt;/a&gt;</textarea>
<p style='color: rgb(0, 114, 204);font-weight: bold;'>BB (forum) Link code:</p>
<textarea id='BB-c
@shemul49rmc
shemul49rmc / Add Metro Style Hover Effect Social Share
Created October 30, 2013 12:56
Add Metro Style Hover Effect Social Share
<style type='text/css'> .custom_images ul {display:inline; list-style:none} .custom_images ul li {float:left; margin-right:1px} </style> <div class='addthis_toolbox'> <div style='margin: 50px 0px 10px; font-family: Arial, Helvetica, Sans-serif;color:#000000;font-size: 22px;'><b>Share This Article With Your Friends :</b></div> <div class='custom_images'> <span class='fade'><ul> <li><a class='addthis_button_facebook'><img alt='Share to Facebook' border='0' height='65' src='https://lh3.googleusercontent.com/-ErgrNe7VaTM/T4ywntBsxGI/AAAAAAAAJHA/79YM4bBqnf4/s57/Facebook%2520alt%25202.png' width='65'/></a></li> <li><a class='addthis_button_twitter'><img alt='Share to Twitter' border='0' height='65' src='https://lh5.googleusercontent.com/-jZW7xfQfo5c/T4ywo5r5yBI/AAAAAAAAJHM/4ZtK0i8IXyA/s57/Twitter%2520alt%25204.png' width='65'/></a></li> <li><a class='addthis_button_google_plusone_share'><img alt='Share to Google+' border='0' height='65' src='https://lh5.googleusercontent.com/-l682ZOmTPl8/T4ywn1Z13TI/AAAAAAAAJG8/ncH
@shemul49rmc
shemul49rmc / Add Print as PDF Button in Your Blogger or WordPress Site
Created October 30, 2013 12:40
Add Print as PDF Button in Your Blogger or WordPress Site
<script src="http://cdn.printfriendly.com/printfriendly.js" type="text/javascript"></script><script type="text/javascript">document.doAT = function(cl){var myclass = new RegExp("hentry");var myTitleContainer = new RegExp("post-title");var myPostContent = new RegExp("post-footer");var elem = this.getElementsByTagName("div");for (var i = 0; i < elem.length; i++){var classes = elem[i].className;if (myclass.test(classes)){var container = elem[i];for (var b = 0; b < container.childNodes.length; b++){var item = container.childNodes[b].className;if (myTitleContainer.test(item)){var link = container.childNodes[b].getElementsByTagName("a");if (typeof(link[0]) != "undefined"){var url = link[0].href;var index_page = true;}else{var url = document.url;var index_page = false;}if (typeof(url) == "undefined"|| url == "undefined" ){url = window.location.href;var index_page = false;}}if (myPostContent.test(item)){var footer = container.childNodes[b];}}var n = document.createElement("div");if (index_page == true) {var at = '<a
@shemul49rmc
shemul49rmc / Modify the Speak Your Mind title text
Created October 29, 2013 12:59
Modify the Speak Your Mind title text
//* 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;
}
@shemul49rmc
shemul49rmc / Customize the credits
Created October 29, 2013 12:53
Customize the credits
//* 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 &copy; ';
echo date('Y');
echo ' &middot; <a href="YOUR_SITE_URL">SITE_NAME</a> &middot;All Rights Reserved &middot; 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>';
}
@shemul49rmc
shemul49rmc / Remove the Website Field from Genesis Comments Form
Created October 29, 2013 12:47
Remove the Website Field from Genesis Comments Form
//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;
}
@shemul49rmc
shemul49rmc / Add Genesis Comment Form Above Comments
Created October 29, 2013 12:42
Add Genesis Comment Form Above Comments
//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 );
}
}
}
@shemul49rmc
shemul49rmc / Customize the return to top of page text
Created October 29, 2013 12:51
Customize the return to top of page text
//* 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;
}
@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
}