Skip to content

Instantly share code, notes, and snippets.

@shemul49rmc
shemul49rmc / Remove Featured Post on eleven40 Theme:
Created October 24, 2013 21:22
Remove Featured Post on eleven40 Theme:
<?php
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'eleven40_grid_loop_helper' );
/** Add support for Genesis Grid Loop */
function eleven40_grid_loop_helper() {
if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 0,
@shemul49rmc
shemul49rmc / Edit 404 Page heading
Created October 24, 2013 21:19
Edit 404 Page heading
<h1 class="entry-title">%s</h1>', __( '<span style="color: #ff0000;">Not found, error 404</span>', 'genesis' ) );
@shemul49rmc
shemul49rmc / How to Insert Image in 404 Page:
Created October 25, 2013 19:20
How to Insert Image in 404 Page:
<?php if (is_404() ){ ?>
<p><a href="your homepage URL, if you want to make it link, other wise delete this part"><img class=aligncenter src="http://i.imgur.com/igTYtrd.png" alt="404 page" width="400" height="383"></p>
<?php } ?>
@shemul49rmc
shemul49rmc / How To Add Beautiful Hacking University Like Email Subscription
Created October 27, 2013 13:44
How To Add Beautiful Hacking University Like Email Subscription
<center><img src="http://i1160.photobucket.com/albums/q486/shemul49rmc/GIF_Mail_By_Shemul49rmcwwwhowtomedinfo24com_zps477668c5.gif"></center>
@shemul49rmc
shemul49rmc / How To Add Beautiful Hacking University Like Email Subscription Widget To WordPress or Blogger
Created October 27, 2013 13:43
How To Add Beautiful Hacking University Like Email Subscription Widget To WordPress or Blogger
<style type='text/css'>#sidebar-subscribe-box{background:url(http://1.bp.blogspot.com/-IyEBRR8yOQQ/UBhYdBd23PI/AAAAAAAAFTU/aeW3JdAlrCs/s1600/colored-strip.png) repeat scroll 0 0 transparent;border:1px solid #aaa;border-radius:3px;padding:3px 0}.sidebar-subscribe-box-wrapper{background:url(http://2.bp.blogspot.com/-tUlo5p5gP8o/UBhYciGNgwI/AAAAAAAAFTM/x22pIuNLVPw/s1600/bg-pattern.png) repeat scroll 0 0 #f7f7f7;color:#111;font-size:14px;line-height:20px;padding:1px 20px 10px;text-align:center;text-transform:uppercase}.sidebar-subscribe-box-form{clear:both;display:block;margin:10px 0}form.sidebar-subscribe-box-form{clear:both;display:block;margin:10px 0 0;width:auto}.sidebar-subscribe-box-email-field{-moz-border-radius:4px;-webkit-border-radius:4px;background:#fff url(http://1.bp.blogspot.com/-JMYdQsIa9WQ/UDZqxqqrTEI/AAAAAAAAFho/AocEv70U8K8/s1600/sprites.png) no-repeat 0 -27px;border:1px solid #ccc;border-radius:4px;color:#444;margin:0 0 15px;padding:10px 40px;width:68%}.sidebar-subscribe-box-email-button{backgro
@shemul49rmc
shemul49rmc / Add Floating Sidebar Social Share Buttons
Created October 27, 2013 18:10
Add Floating Sidebar Social Share Buttons
<!–SideBar Floating Share Buttons by http://iamshemul.com/ Code Start–>
<style>
#pageshare {position:fixed; bottom:15%; right:10px; float:left; border: 1px solid black; border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:#eff3fa;padding:0 0 2px 0;z-index:10;}
#pageshare .sbutton {float:left;clear:both;margin:5px 5px 0 5px;}
.fb_share_count_top {width:48px !important;}
.fb_share_count_top, .fb_share_count_inner {-moz-border-radius:3px;-webkit-border-radius:3px;}
.FBConnectButton_Small, .FBConnectButton_RTL_Small {width:49px !important; -moz-border-radius:3px;-webkit-border-radius:3px;}
.FBConnectButton_Small .FBConnectButton_Text {padding:2px 2px 3px !important;-moz-border-radius:3px;-webkit-border-radius:3px;font-size:8px;}
</style>
<div id='pageshare' title="Share This With Your Friends">
@shemul49rmc
shemul49rmc / Add Floating Social Share Buttons
Created October 27, 2013 18:17
Add Floating Social Share Buttons
<div class='sbutton' id='gb'><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like layout="box_count" show_faces="false" font=""></fb:like></div>
@shemul49rmc
shemul49rmc / Add the top navigation menu
Created October 28, 2013 11:41
Add the top navigation menu
/* Add the top navigation menu */
/* Links need to be manually added here, change the link to your own page. This menu isn't supported by Thesis */
function topnav_menu() {
?>
<ul id="topnav">
<li><a href="http://iamshemul.com/">Home</a></li> |
<li><a href="http://iamshemul.com/about-iamshemul-com/">About</a></li> |
<li><a href="http://howto.medinfo24.com/archives/">Archives</a></li> |
<li><a href="http://iamshemul.com/contact/">Contact</a></li> |
<li><a href="http://iamshemul.com/contact/">Sitemap XML</a></li>
@shemul49rmc
shemul49rmc / Add Additional Menu in Thesis Theme
Created October 28, 2013 11:39
Add Additional Menu in Thesis Theme
register_nav_menu('secondary', 'Secondary Menu');
function secondary_menu() {
wp_nav_menu( array( 'container_class' => 'secondary_menu', 'theme_location' => 'secondary' ) );
}
add_action('thesis_hook_after_header','secondary_menu');
@shemul49rmc
shemul49rmc / Move The Category Nav Menu Below Header
Created October 28, 2013 11:43
Move The Category Nav Menu Below Header
remove_action('thesis_hook_before_header', 'thesis_nav_menu');
add_action('thesis_hook_after_header', 'thesis_nav_menu');