Skip to content

Instantly share code, notes, and snippets.

View tessak22's full-sized avatar
🚀
Cultivating Developer Community @Snapchat

Tessa Kriesel tessak22

🚀
Cultivating Developer Community @Snapchat
View GitHub Profile
@tessak22
tessak22 / functions.php
Created March 12, 2019 11:48
Building Gutenberg Blocks with ACF — Register Block
/**
* Register hero block
*/
add_action('acf/init', 'hero');
function hero() {
// check function exists
if( function_exists('acf_register_block') ) {
// register a hero block
@tessak22
tessak22 / style.css
Last active October 29, 2019 14:21
ACF Team Member Block
/* CSS HERE */
@tessak22
tessak22 / functions.php
Last active February 20, 2020 10:58
ACF Testimonial Block
/**
* Testimonial Block
*/
function register_acf_block_types() {
// register a testimonial block.
acf_register_block_type(array(
'name' => 'testimonial',
'title' => __('Testimonial'),
'description' => __('A custom testimonial block.'),
@tessak22
tessak22 / functions.php
Created March 12, 2019 12:06
Hero Gutenberg Block using Advanced Custom Fields 5.8 Pro
/**
* Register hero block
*/
add_action('acf/init', 'hero');
function hero() {
// check function exists
if( function_exists('acf_register_block') ) {
// register a hero block