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 | |
add_action( 'after_setup_theme', array( $this, 'boa_setup_gutenberg_colorpalette' ) ); | |
add_action( 'after_setup_theme', array( $this, 'boa_gutenberg_disable_custom_colors' ) ); | |
/** | |
* Disable the custom color picker. | |
*/ | |
public function boa_gutenberg_disable_custom_colors() { | |
add_theme_support( 'disable-custom-colors' ); | |
} |
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 | |
add_filter('acf/settings/load_json', 'parent_theme_acf_load'); | |
function parent_theme_acf_load($paths) { | |
// Locate the parent template directory | |
$path = get_template_directory().'/acf-json'; | |
$paths[] = $path; | |
return $paths; |
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 | |
// Add in contstuctor | |
add_filter( 'gform_phone_formats', [ $this, 'gf_nl_phone_format' ] ); | |
// Add anywhere in the functions.php | |
function gf_nl_phone_format( $phone_formats ) { | |
$phone_formats['nl'] = array( | |
'label' => 'Nederlands', | |
'mask' => false, |
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 | |
function radish_gutenberg_full_width() { | |
echo '<style> | |
body.gutenberg-editor-page .editor-post-title__block, body.gutenberg-editor-page .editor-default-block-appender, body.gutenberg-editor-page .editor-block-list__block { | |
max-width: none !important; | |
} | |
.block-editor__container .wp-block { | |
max-width: none !important; | |
} |