Skip to content

Instantly share code, notes, and snippets.

View sumanahmed's full-sized avatar

Suman Ahmed sumanahmed

  • Future Plan IT Solution
  • Dhaka
View GitHub Profile
add_theme_support( 'post-thumbnails', array( 'post' ) );
add_image_size( 'post-image', 150, 150, true );
//Comments query
<?php comments_popup_link( 'No Comments', 'One Comments', '% Comments', '', 'Comment is disable' ); ?>
//comments template
<?php comments_template( '', true ); ?>
//html language set
<html <?php language_attributes(); ?> >
//meta charset
<meta charset="<?php bloginfo( 'charset' ); ?>">
//title set
<title><?php wp_title( '|', true, 'right' ); ?></title>
//before ending head
<?php the_author_meta('description'); ?></p>
user_login
user_pass
user_nicename
user_email
user_url
user_registered
user_activation_key
user_status
JS:
var s = $("#sticker");
var pos = s.position();
$(window).scroll(function(){
var windowpos = $(window).scrollTop();
if(windowpos >= pos.top){
s.addClass("stick");
}else{
s.removeClass("stick");
}