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
/* Override Gutenbergs asymeteical column margins with the negative margin trick */ | |
.wp-block-columns { | |
margin: 0 -20px; | |
} | |
.wp-block-columns .wp-block-column { | |
margin: 0 0 20px 0; | |
padding: 0 20px; | |
} |
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
<?php | |
// ******************************* | |
// Get ACF block fields outside block templates | |
// ------------------------------- | |
function get_block_field( $field_id, $post_id = '' ) { | |
// Get current post ID if post_id arg isn't passed | |
$post_id = $post_id ? $post_id : get_the_ID(); |
NewerOlder