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 $img = get_field('field_name'); ?> | |
| <!-- LARGE --> | |
| <img src="<?php echo $img['sizes']['large']; ?>" width="<?php echo $img['sizes']['large-width']; ?>" height="<?php echo $img['sizes']['large-height']; ?>" alt="<?php echo $img['alt']; ?>" /> | |
| <!-- Medium --> | |
| <img src="<?php echo $img['sizes']['medium']; ?>" width="<?php echo $img['sizes']['medium-width']; ?>" height="<?php echo $img['sizes']['medium-height']; ?>" alt="<?php echo $img['alt']; ?>" /> |
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
| &.sticky { | |
| position: fixed; | |
| top: 0; | |
| z-index: 1000; | |
| background: $white; | |
| width: 100%; | |
| transition: all 0.8s ease; | |
| border-bottom: 3px solid $blue; | |
| } |
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
| // ADMIN BAR FIXES | |
| .admin-bar { | |
| .nav-desktop { | |
| &.sticky { | |
| top: 32px !important; | |
| @media screen and (max-width: 600px) { |
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
| $(window).scroll(function() { | |
| $(".quick-question").removeClass("hide"); | |
| if($(window).scrollTop() + $(window).height() > ($(document).height() - 100) ) { | |
| //you are at bottom | |
| $(".quick-question").addClass("hide"); | |
| } | |
| }); |
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 // Borrowed with love from FoundationPress | |
| function joints_page_navi() { | |
| global $wp_query; | |
| $big = 999999999; // This needs to be an unlikely integer | |
| // For more options and info view the docs for paginate_links() | |
| // http://codex.wordpress.org/Function_Reference/paginate_links | |
| $paginate_links = paginate_links( array( | |
| 'base' => str_replace( $big, '%#%', html_entity_decode( get_pagenum_link( $big ) ) ), | |
| 'current' => max( 1, get_query_var( 'paged' ) ), | |
| 'total' => $wp_query->max_num_pages, |
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
| a[href*="//"]:not([href*="carewisconsin.com"]):not([href*="pantheonsite.io"]) { | |
| /* external link styles, use :before or :after if you want! */ | |
| } | |
| // '^=' means starts with | |
| // '^*' means contains | |
| // Covers relative paths, primary site, and development site |
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 | |
| // Check parent category, check if parent category has sub categories, display sub categories of parent that have posts associated. | |
| $term = get_field('parent_category'); | |
| if ($term) { | |
| $args = ['parent' => $term]; | |
| $categories = get_categories($args); | |
| if (!empty($categories)) { | |
| echo '<div class="child-categories widget widget_categories">'; |
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
| <p class="project-categories"> | |
| <?php $categories = get_the_category(); | |
| $separator = ' | '; | |
| $output = ''; | |
| $catgeories = get_terms([ | |
| 'taxonomy' => 'category', | |
| 'hide_empty' => false, | |
| 'exclude' => [1], | |
| ]); |
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
| [class*="column"]+[class*="column"]:last-child { | |
| float: left; | |
| } |
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_theme_support( 'post-thumbnails' ); | |
| // Custom image sizes | |
| add_image_size( 'custom-size', 220, 180 ); // 220 pixels wide by 180 pixels tall, soft proportional crop mode | |
| add_image_size( 'custom-size', 220, 180, true ); // 220 pixels wide by 180 pixels tall, hard crop mode | |
| add_image_size( 'custom-size', 220, 220, array( 'left', 'top' ) ); // Hard crop left top |