Skip to content

Snippet: Add/Remove Typography Options

add_filter( 'wpex_typography_settings', function( $settings ) {

    // Remove logo typography (not needed if using an image)
    unset( $settings['logo'] );

    // Add new typography settings for your custom element with a class of .my-element
    $settings['my_element'] = array(
        'label'     => __( 'My Element Name', 'wpex' ), // Name in the Customizer
        'target'    => '.my-element', // Element to target
        'exclude'   => array( 'font-color' ), // You can exclude specific settings here

    // Return settings
    return $settings;

} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top