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
| ::-webkit-input-placeholder { /* Chrome */ | |
| color: #1E1F22 !important; | |
| } | |
| :-ms-input-placeholder { /* IE 10+ */ | |
| color: #1E1F22 !important; | |
| } | |
| ::-moz-placeholder { /* Firefox 19+ */ | |
| color: #1E1F22 !important; | |
| opacity: 1 !important; | |
| } |
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> | |
| <?php | |
| $terms = get_the_terms($post->ID, 'taxonomy'); | |
| if ($terms) { | |
| foreach ($terms as $term) { | |
| echo '<span>' . $term->name . '</span>'; | |
| } | |
| } | |
| ?> | |
| </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
| // GET TAXONOMY TERM DATA (NATIVE AND ACF) | |
| $queried_object = get_queried_object(); | |
| $taxonomy = $queried_object->taxonomy; | |
| $term_id = $queried_object->term_id; | |
| $term_slug = $queried_object->slug; | |
| $content = get_field('content', $taxonomy . '_' . $term_id); | |
| $featured_image = get_field('featured_image', $taxonomy . '_' . $term_id); |
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
| // Goes after the endwhile before reset post data | |
| <div class="pagination"> | |
| <?php | |
| echo paginate_links( array( | |
| 'base' => str_replace( 999999999, '%#%', esc_url( get_pagenum_link( 999999999 ) ) ), | |
| 'total' => $query->max_num_pages, | |
| 'current' => max( 1, get_query_var( 'paged' ) ), | |
| 'format' => '?paged=%#%', | |
| 'show_all' => false, |
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
| @mixin hide-for-print { | |
| @media print { | |
| display: none; | |
| } | |
| } | |
| @mixin show-for-print { | |
| @media print { |
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
| $('.div').matchHeight(); | |
| $('.div').matchHeight({byRow: false}); |
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
| if( function_exists('acf_add_options_page') ) { | |
| acf_add_options_page(array( | |
| 'page_title' => 'Theme General Settings', | |
| 'menu_title' => 'Theme Settings', | |
| 'menu_slug' => 'theme-general-settings', | |
| 'capability' => 'edit_posts', | |
| 'redirect' => false | |
| )); | |
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
| // Redirect non-existant single post page to primary listing page | |
| if (preg_match('/^\/blog\/technician/', $_SERVER['REQUEST_URI'])) { | |
| header('HTTP/1.0 301 Moved Permanently'); | |
| header('Location: /technician-locator'); | |
| exit(); | |
| } |
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 screen and (max-width: 1800px) { | |
| } | |
| @media screen and (max-width: 1200px) { | |
| } | |
| @media screen and (max-width: 900px) { |
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 | |
| // TAXONOMY | |
| $terms = get_field('resource_listing'); | |
| if ($terms) : | |
| if (is_array($terms)) { | |
| $terms = implode(',', $terms); | |
| } | |
| $args = [ | |
| 'post_type' => 'resource', | |
| 'posts_per_page' => -1, |