This file contains 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
/* | |
* | |
Allows you to use the 'Edit with Bricks' button to override templates. For instance, | |
you may have a template for most/all 'Pages' but need to override a specific page. | |
This allows you to do so without going into the Bricks template and setting conditions. | |
See https://academy.bricksbuilder.io/article/filter-bricks-active_templates/ for more info. | |
* | |
*/ | |
add_filter( 'bricks/active_templates', 'cls_set_active_templates', 10, 3 ); |
This file contains 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'); |