Exclude stylesheet from admin

There are a couple of options. One is to wrap the enqueue in a check to see if it is the admin. if(!is_admin()) wp_enqueue_style(….); The other is wait to enqueue the style until template_redirect. function my_enqueue_styles() { wp_enqueue_style(….); } add_action( ‘template_redirect’, ‘my_enqueue_styles’ );

Adding goodies to themes

There are three ways to do this Functions.php Put your additions in functions.php and back up that file before you update your theme. Then you can port over any additions as necessary. Child theme Build a child theme that adds the functionality – in reality, this would be an even better way to use a … Read more

Theme of codinghorror.com

Actually i’m pretty sure it’s Movable Type. And honestly, it’s about as simple a theme as you could find. If I were you, I’d start with the Thematic framework and add a tiny bit of CSS. Shouldn’t need much more than that!

single.php change into a modal popup bootstrap wordpress

Check the original answer Here. <div class=”container” style=”margin-top:20px; min-height:500px;” > <div class=”row”> <?php $labels = new WP_Query(array( ‘post_type’ => ‘slider’, ‘posts_per_page’ => 1000 )); while ( $labels->have_posts() ) : $labels->the_post(); ?> <?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(5600,1000 ), false, ” ); ?> <a href=”#myModal-<? the_ID(); ?>” data-toggle=”modal” > <div class=”span2″ style=”background: #09F url(<?php echo $src[0]; … Read more