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
/* remove bottom margin on last paragraph or list in container */ | |
.gb-container p:last-child:last-of-type, | |
.gb-container ul:last-child:last-of-type { | |
margin-bottom: 0px; | |
} | |
/* footer navigation block spacing */ | |
.wp-block-navigation li { | |
line-height: 1em; | |
} |
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
// dynamic titles for search results | |
// use shortcode [search_title] | |
add_shortcode('search_title',function(){ | |
return sprintf( | |
/* translators: 1: Search query name */ | |
__( 'Search Results for: %s', 'generatepress' ), | |
'<span class="search-query">' . get_search_query() . '</span>' | |
); | |
}); |
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'); |
NewerOlder