This file contains hidden or 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
//== Media queries breakpoints | |
// | |
//## Define the breakpoints at which your layout will change, adapting to different screen sizes. | |
// Extra small screen / phone | |
// Note: Deprecated @screen-xs and @screen-phone as of v3.0.1 | |
@screen-xs: 0; //480px; | |
@screen-xs-min: @screen-xs; | |
@screen-phone: @screen-xs-min; |
This file contains hidden or 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 | |
$get_current_cat = get_term_by('name', single_cat_title('',false), 'category'); | |
$current_cat = $get_current_cat->term_id; | |
// List posts by the terms for a custom taxonomy of any post type | |
$post_type = 'special_events'; | |
$tax = 'locations'; | |
$tax_terms = get_terms( $tax, 'orderby=name&order=ASC'); | |
if ($tax_terms) { |
This file contains hidden or 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
// Add Favicon | |
function favicon() { | |
echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_template_directory_uri().'/assets/favicon/favicon.ico" />'; | |
} | |
add_action('wp_head', 'favicon'); |
This file contains hidden or 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 bootstrap_tab_bookmark (selector) { if (selector == undefined) { | |
selector = ""; } | |
/* Automagically jump on good tab based on anchor */ | |
$(document).ready(function() { | |
url = document.location.href.split('#'); | |
if(url[1] != undefined) { | |
$(selector + '[href=#'+url[1]+']').tab('show'); | |
} | |
}); |
This file contains hidden or 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 | |
/* | |
Template Name: Trainers Template | |
*/ | |
?> | |
<div class="trainers-grid"> | |
<?php | |
$args = array( |
This file contains hidden or 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
$args = array( 'post_type' => 'video', 'posts_per_page' => 10,); | |
$the_query = new WP_Query( $args ); | |
echo '<section id="our-work">'; | |
if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); | |
$counter += 1; | |
if ($counter == 1 || $counter == 4 || $counter == 6 || $counter == 9) { |
This file contains hidden or 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' => 'trainers', 'posts_per_page' => -1 ); | |
$loop = new WP_Query( $args ); | |
while ( $loop->have_posts() ) : $loop->the_post(); ?> | |
<?php the_title(); ?> | |
<?php endwhile; ?> | |
<?php wp_reset_query(); ?> |
This file contains hidden or 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 $wp_query; echo '<p>Found ' . $wp_query->found_posts . ' hits.</p>'; ?> |
This file contains hidden or 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
jQuery('.accordion section').click(function() { | |
jQuery(this).toggleClass('active').find('i').toggleClass('fa-plus fa-minus') | |
.closest('section').siblings('section') | |
.removeClass('active').find('i') | |
.removeClass('fa-minus').addClass('fa-plus'); | |
}); |