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
/** | |
* Font Face "hack" | |
*/ | |
@font-face { | |
font-family: "font-name"; | |
src: url("../fonts/font-name.eot"); | |
src: local("☺"), | |
url("../fonts/font-name.woff") format("woff"), | |
url("../fonts/font-name.otf") format("opentype"), |
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
<button>Normal button</button> |
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
$(window).scroll(function() { | |
if ($(this).scrollTop() > 80) { | |
$('.fixed-header').addClass('fixed'); | |
} else { | |
$('.fixed-header').removeClass('fixed'); | |
} | |
}); |
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
<?php | |
$key = get_post_meta( get_the_ID(), 'wpsb_meta_box_check', true ); | |
if( ! empty( $key ) ) { | |
echo $key; | |
} | |
?> |
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
$key = get_post_meta( get_the_ID(), 'wpsb_meta_box_check', true ); | |
if( $key == 'on' ) { | |
echo 'prout'; | |
} |
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
<?php | |
$key = get_post_meta( get_the_ID(), 'wpsb_meta_box_check', true ); | |
if( $key == 'on' ) { | |
echo 'prout'; | |
} | |
?> |
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
<?php while (have_posts()) : the_post(); ?> | |
<div class="main-content col-1-1"> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
Your single post content | |
</article> | |
</div> | |
<?php endwhile; ?> |
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
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<?php | |
if ( is_sticky() ) { | |
echo '<div class="sticky-flag"><i class="icon-pin wiggle"></i></div>'; | |
} | |
?> | |
<div class="post-thumbnail"> | |
</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
function wpc_widgets() { | |
remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal'); | |
remove_meta_box('dashboard_plugins', 'dashboard', 'normal'); | |
remove_meta_box('dashboard_primary', 'dashboard', 'normal'); | |
remove_meta_box('dashboard_secondary', 'dashboard', 'normal'); | |
} | |
add_action('admin_init', 'wpc_widgets'); |
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
<?php | |
/** | |
* Clean wp_head() | |
* | |
* Remove feed links | |
* Remove extra feed links | |
* Remove RSD & Windows Live Writer links | |
* Remove WP version | |
* Remove nav links | |
*/ |
OlderNewer