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
// http://stackoverflow.com/questions/18432577/stacked-tabs-in-bootstrap-3 | |
.tabs-below, .tabs-right, .tabs-left { | |
.nav-tabs { | |
border-bottom: 0; | |
} | |
} | |
.tab-content > .tab-pane, | |
.pill-content > .pill-pane { | |
display: none; |
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
cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys" |
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_value upload_max_filesize 64M | |
php_value post_max_size 64M | |
php_value max_execution_time 300 | |
php_value max_input_time 300 |
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 $terms = get_the_terms( $post->ID , 'Taxonomy Name' ); | |
foreach ( $terms as $term ) { | |
$term_link = get_term_link( $term, 'Taxonomy Name' ); | |
echo "<a href='".$term_link."'>" . $term->name . "</a>, "; | |
} ?> |
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 if(get_field('team_members')): ?> | |
<?php while(has_sub_field('team_members')): ?> | |
<div class="row team-member"> | |
<div class="col-sm-4"> | |
<img src="<?php the_sub_field('team_member_headshot'); ?>" class="img-responsive img-circle" alt="<?php the_sub_field('team_member_name'); ?>"> | |
</div> | |
<div class="col-sm-8"> | |
<h3 class="team-member-name"><?php the_sub_field('team_member_name'); ?></h3> | |
<div class="team-member-position"><?php the_sub_field('team_member_title'); ?></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
<?php $args = array( 'post_type' => 'lastest_updates', 'showposts' => 1); ?> | |
<?php $latest_updates = new WP_Query( $args ); ?> | |
<?php if ( $latest_updates->have_posts() ) : ?> | |
<?php while ( $latest_updates->have_posts() ) : $latest_updates->the_post(); ?> | |
<?php the_short_title(35); ?> <a href="<?php the_permalink(); ?>" class="read-more">Read More →</a> | |
<?php endwhile; ?> | |
<?php wp_reset_postdata(); ?> |
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
<!-- Call --> | |
<a href="#branding">Branding</a> | |
<!-- Anchor --> | |
<div id="branding" class="anchor"></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
Change the following is affix.js | |
From | |
this.$element.offset({ top: document.body.offsetHeight - offsetBottom - this.$element.height() }) | |
To | |
this.$element.offset({ top: scrollHeight - offsetBottom - this.$element.height() }) |
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 global $woocommerce; ?> | |
<a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?> - <?php echo $woocommerce->cart->get_cart_total(); ?></a> |
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
// Remove Update Notification | |
add_filter('site_transient_update_plugins', 'dd_remove_update_nag'); | |
function dd_remove_update_nag($value) { | |
unset($value->response[ plugin_basename(__FILE__) ]); | |
return $value; | |
} |