• Resolved Emmanuel Kuebutornye

    (@emmanuelkuebu)


    Am trying to run the following css in admin only but its not working

    add_action( ‘wp_head’, function () { ?>
    <style>

    .gform-settings-header .gform-settings__wrapper {
    display: none;
    }

    </style>
    <?php } );

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    wp_head is a front-end only hook. You need to use admin_head to have scripts and styles show up in the admin:

    add_action( 'admin_head', function () { ?>
    <style>
    
    .gform-settings-header .gform-settings__wrapper {
    	display: none;
    }
    
    </style>
    <?php } );
    Thread Starter Emmanuel Kuebutornye

    (@emmanuelkuebu)

    Thanks, this worked

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘CSS not working’ is closed to new replies.