Customizer settings – functions

If you want customizer option not ACF options, then inside the after_theme_setup add these.

Setting a custom background colour:

<?php
		// Set up the WordPress core custom background feature.
		add_theme_support( 'custom-background', apply_filters( 'gomo_custom_background_args', array(
			'default-color' => 'ffffff',
			'default-image' => '',
		) ) );

Custom logo image (if not using ACF for this):

<?php
/**
 * Add support for core custom logo.
 *
 * @link https://codex.wordpress.org/Theme_Logo
 */
add_theme_support( 'custom-logo', array(
	'height'      => 250,
	'width'       => 250,
	'flex-width'  => true,
	'flex-height' => true,
) );

Search the site

Share this page:

Newsletter

Subscribe to get regular news and updates

  • This field is for validation purposes and should be left unchanged.