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
| $mobileColumn: 400; | |
| $narrowColumn: 700; | |
| $multiColumn: 1000; | |
| $mainWidth: $narrowColumn - 40; | |
| $multiWidth: $multiColumn - 40; | |
| $narrowWidth: 95%; | |
| $mobileWidth: 90%; | |
| @mixin breakpoint($point) { |
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
| # Single Page | |
| Redirect 301 /oldpage2.html http://www.yoursite.com/folder/ | |
| # Whole Site | |
| Redirect 301 / http://newsite.com/ |
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
| /wp-content/themes/yb/library/_images/ |
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
| background: | |
| inline-image("../_images/quote-top.png", 'image/png') no-repeat top left, | |
| inline-image("../_images/quote-bottom.png", 'image/png') no-repeat bottom right | |
| ; |
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 | |
| // ACF Repeater Field to Flex Slider. | |
| $repeaterFieldName = 'history_gallery'; | |
| $pageId = NULL; // Just in case, use only if needed. | |
| $imageFieldName = 'image'; | |
| $imageSize = 'medium'; | |
| $repeater = get_field($repeaterFieldName, $pageId); |
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 horizontal-gallery($narrowCol: 3, $normalCol: 4, $multiCol: 5, $gutterSize: 10) { | |
| // Apply to ul | |
| $normalMargin: $gutterSize / ( $normalCol - 1 ); | |
| $normalWidth: ( 100 - $gutterSize ) / $normalCol; | |
| $narrowMargin: $gutterSize / ( $narrowCol - 1 ); | |
| $narrowWidth: ( 100 - $gutterSize ) / $narrowCol; | |
| $multiMargin: $gutterSize / ( $multiCol - 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
| <?php echo ( $boolean === true ? 'if' : 'else' ) ?> |
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 if (have_posts()) : ?> | |
| <?php while (have_posts()) : the_post(); ?> | |
| <?php endwhile; ?> | |
| <?php endif; wp_reset_postdata(); ?> |
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
| // Modify the 'posts_per_page' arg for pages with "built-in" loops (categories, search, etc) | |
| function page_post_counts( $query ) { | |
| if ( $query->is_search() === true ) { | |
| $query->query_vars['posts_per_page'] = 10; | |
| } | |
| } | |
| add_action( 'pre_get_posts', 'page_post_counts' ); |