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:generateblocks/element {"uniqueId":"64c787fc","tagName":"div","styles":{"paddingTop":"4rem","paddingLeft":"2rem","paddingBottom":"4rem","paddingRight":"2rem","@media (max-width:767px)":{"paddingLeft":"1.5rem","paddingRight":"1.5rem"}},"css":".gb-element-64c787fc{padding:4rem 2rem}@media (max-width:767px){.gb-element-64c787fc{padding-left:1.5rem;padding-right:1.5rem}}","metadata":{"name":"Grid One"}} --> | |
| <div class="gb-element-64c787fc"><!-- wp:generateblocks/element {"uniqueId":"00beb200","tagName":"div","styles":{"marginLeft":"auto","marginRight":"auto","maxWidth":"var(\u002d\u002dgb-container-width)"},"css":".gb-element-00beb200{margin-left:auto;margin-right:auto;max-width:var(\u002d\u002dgb-container-width)}"} --> | |
| <div class="gb-element-00beb200"><!-- wp:generateblocks/text {"uniqueId":"ca6149f8","tagName":"p","styles":{"textAlign":"center","fontSize":"1rem","fontWeight":"700","textTransform":"uppercase","letterSpacing":"4px","color":"var(\u002d\u002dbase-2)","marginBottom":"3rem"},"css":".gb-text- |
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:generateblocks/container {"uniqueId":"24ce87be","gradientDirection":120,"gradientColorOne":"var(\u002d\u002dgrey)","gradientColorTwo":"var(\u002d\u002dwhite)","gradientColorStopTwo":50,"bgOptions":{"selector":"pseudo-element","opacity":0.3,"overlay":false,"position":"top 140px right -80px","size":"400px","repeat":"no-repeat","attachment":""},"isDynamic":true,"blockVersion":4,"position":"relative","overflowX":"hidden","overflowXTablet":"hidden","overflowXMobile":"hidden","overflowY":"hidden","overflowYTablet":"hidden","overflowYMobile":"hidden","spacing":{"paddingTop":"8rem","paddingLeft":"2rem","paddingRight":"2rem","paddingBottom":"8rem"},"metadata":{"name":"Desktop \u0026 Tablet Version"},"hideOnMobile":true} --> | |
| <!-- wp:generateblocks/container {"uniqueId":"1d296f19","isDynamic":true,"blockVersion":4,"flexDirection":"column","sizing":{"widthTablet":"100%"},"useGlobalMaxWidth":true,"spacing":{"marginRight":"auto","marginLeft":"auto","marginTop":""},"globalStyleId":"primary"} --> | |
| <!-- wp:generatebloc |
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:generateblocks/container {"uniqueId":"0fc6b28d","anchor":"portfolio","backgroundColor":"var(\u002d\u002dbase-3)","isDynamic":true,"blockVersion":4,"sizing":{"height":"","maxWidth":""},"globalStyleLabel":"Outer Container"} --> | |
| <!-- wp:generateblocks/container {"uniqueId":"9e36eb19","isDynamic":true,"blockVersion":4,"sizing":{"maxWidth":""},"useGlobalMaxWidth":true,"spacing":{"paddingTop":"120px","paddingRight":"30px","paddingBottom":"120px","paddingLeft":"30px","marginRight":"auto","marginLeft":"auto"},"globalStyleLabel":"Main Padding"} --> | |
| <!-- wp:generateblocks/headline {"uniqueId":"ec2f8859","element":"h1","blockVersion":3,"display":"inline-flex","spacing":{"paddingBottom":"4px"},"borders":{"borderBottomWidth":"1px","borderBottomStyle":"solid","borderBottomColor":"var(\u002d\u002dcontrast-3)"}} --> | |
| <h1 class="gb-headline gb-headline-ec2f8859 gb-headline-text">Latest projects</h1> | |
| <!-- /wp:generateblocks/headline --> | |
| <!-- wp:generateblocks/container {"uniqueId":"702ba69e","isDynamic":true,"blockVers |
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 | |
| // random choice of image from ID array | |
| $att_id = array(#, #, #, #, #, #); | |
| $rnd_att_id = $att_id[array_rand($att_id)]; | |
| $full_img_url = wp_get_attachment_image_src($rnd_att_id, 'full'); | |
| $md_lg_img_url = wp_get_attachment_image_src($rnd_att_id, 'medium_large'); | |
| // preload our random image if the exist | |
| if ( !empty( $full_img_url ) && !empty( $md_lg_img_url ) ) { | |
| echo '<link rel="preload" as="image" href="' . esc_url($full_img_url[0]) . '" type="image/jpeg" media="(min-width: 768px)">'; |
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
| // remove pages from search results | |
| function exclude_pages_from_search( $query ) { | |
| if ( $query->is_search() && $query->is_main_query() && ! is_admin() ) { | |
| $query->set( 'post_type', 'post' ); | |
| } | |
| } | |
| add_filter( 'pre_get_posts','exclude_pages_from_search' ); | |
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_action( 'wp_head', function() { | |
| if( is_single() && has_post_thumbnail() ) { | |
| // Get our images URLs | |
| $feat_img_url_medium = get_the_post_thumbnail_url(get_the_ID(),'medium'); | |
| $feat_img_url_medium_large = get_the_post_thumbnail_url(get_the_ID(),'medium_large'); | |
| $feat_img_url_large = get_the_post_thumbnail_url(get_the_ID(),'large'); | |
| $feat_img_url_full = get_the_post_thumbnail_url(get_the_ID(),'full'); |
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
| /* remove margin below form */ | |
| .ngl-form { | |
| margin-bottom: 0px !important; | |
| } | |
| /* ng container spacing in and out */ | |
| .wp-block-newsletterglue-callout { | |
| padding-top: 40px !important; | |
| margin: 40px auto; | |
| } |
NewerOlder