Partial Refresh for background-color
-
Hey guys!
I was taking a look at the docs here (https://aristath.github.io/kirki/docs/arguments/partial_refresh.html) and trying to figure out how to use partial refresh for a background/text or any other color field.
The default customizer way would look something like this:
$wp_customize->selective_refresh->add_partial('hero_background_color', array( 'selector' => '#hero-css', 'settings' => 'hero_background_color', 'render_callback' => function() { return self::css('.hero', 'background-color', 'hero_background_color'); }, ) );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Partial Refresh for background-color’ is closed to new replies.