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


Address

123 Main Street
Town
City
P05T C0D3

Tel: 01234 567 899

Mob: 01234 567 899

Email: ben@gomopress.com


Copyright 2023. Blah blah blah Company Limited