0

I am trying to include a css in my plugin, I found something related on stackoverflow, but it doesn't work out ! It is event not showing in console if the css file exists or not !

        if ($session_data['login_cashdrawer_mode'] == 'waiter') {
            
        add_action('wp_enqueue_scripts', 'callback_for_setting_up_scripts');
            
        function callback_for_setting_up_scripts() {
         wp_register_style( 'namespace', 'http://locationofcss.com/mycss.css' );
         wp_enqueue_style( 'namespace' );
            }       

        }
2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.