Theme customizer – settings order

If I add more than 5 Settings to a single section, the order of the settings gets weird. For example: // Link color $wp_customize->add_setting( ‘tonal_’.$themeslug.’_settings[link_color1]’, array( ‘default’           => $themeOptions[‘link_color1’], ‘type’              => ‘option’, ‘sanitize_callback’ => ‘sanitize_hex_color’, ‘capability’        => ‘edit_theme_options’, ‘transport’     … Read more

Add settings to menu items in the Customizer

WordPress 5.4 added the wp_nav_menu_item_custom_fields_customize_template hook to add custom fields to the Nav Menu Item settings in the customizer. I’ve figured out how to display the additional fields I would like to add (As part of my Nav Menu Roles plugin), with the following snippet: /** * Display the fields in the Customizer. */ function … Read more

How do I implement the WordPress Iris picker into my plugin on the front-end?

This question here is asking the same question as I am, but there were no adequate answers nor a selected correct answer so I am asking again hoping if I ask in a more coherent manner I might get a response. I am trying to implement the colour picker wheel as seen in the WordPress … Read more

Link to specific Customizer section

I’ve got a site with a few extra Customizer sections. Is there a way to link directly to these so that section open when the page loads? Something like http://mysites.com/wp-admin/customize.php#fonts screenshot http://new.tinygrab.com/96412a96d208cf8ff0cf5803327b2d29e0ca68810e.png 1 As you’ve already discovered, links to the customizer always start with /wp-admin/customize.php. Append ?autofocus[section] =section_name to checkout your section within the customizer. … Read more

get_option() vs get_theme_mod(): Why is one slower?

I’ve been using get_theme_mod() for some time in various projects of mine. I decided to take advantage of the Theme Customization API in WordPress v3.4 once it was available as I felt it was an indispensable tool for my clients to use. After some time, I began to notice that my sites were feeling a … Read more