Skip to content
Site Under Re-Design: We're updating & improving the docs! Some layouts or content may look broken or inconsistent during this process. If you’re unable to find an article, please use the search bar while we restructure and optimize the sidebar navigation.

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)
Related Snippets
Back To Top