[Support request] Hide Additional CSS in Customizer

Home Forums Support [Support request] Hide Additional CSS in Customizer

Home Forums Support Hide Additional CSS in Customizer

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #607580
    Daren

    When using the simple CSS plugin is it possible to hide the Additional CSS option in the customizer?

    #607716
    Leo
    Staff
    Customer Support

    Hi there,

    Give this snippet a shot:

    add_action( 'customize_register', 'lh_remove_addtional_css', 15 );
    
    function lh_remove_addtional_css( $wp_customize ) {
    	$wp_customize->remove_section( 'custom_css' );
    }

    Adding PHP: https://docs.generatepress.com/article/adding-php/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.