Support » Plugin: Woody code snippets - Insert Header Footer Code, AdSense Ads » Universal Code doesn’t works with Admin Pages

  • So i created a Universal Code snippet having a style html tag with CSS to theme my Admin Toolbar but it didn’t worked and while debugging noticed that-

    1. It has some conflict with Admin Menu Editor Plugin
    2. Universal code is not working on Admin Pages. Set to work on Automatic Insertion->Head with no Conditional execution logic (though tried conditional execution logic with Page->Full website & Current Page->contains->/wp-admin/ without any success)

    MY UNIVERSAL CODE SNIPPET-

    <style type="text/css">
    #wpadminbar {
        border-bottom: 4px solid;
        border-color: #f44336;
        font-weight: bolder;
    }  
    </style>
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello

    1. Thanks for report. We will fix it.
    2. Sorry. Plugin have insertion options for frontend only. Maybe we’ll add it in next updates.
    Another way is to create a PHP Snippet.

    
    function my_custom_admin_css(){
    		$custom_css = "
    		#wpadminbar {
    		    border-bottom: 4px solid;
    		    border-color: #f44336;
    		    font-weight: bolder;
    		}  ";
    	wp_add_inline_style( 'admin-bar', $custom_css );
    }
    add_action('admin_enqueue_scripts', 'my_custom_admin_css');
    

    Best regards

    Thread Starter utsavmadaan823

    (@utsavmadaan823)

    Ok thanks, great going. All the best.
    And please consider adding backend support (wp-admin) and would also recommend you to take a look at these 2 plugins (they are great & quiet comprehensive) which are direct competitor to your plugin..you might see some feature you would like to include in your plugin though i am able to move to your plugin without any issue except this backend (wp-admin) support..but still take a look into these plugins for example they have got code version control.

    Plugins-
    1. Code Snippets for PHP Code
    https://wordpress.org/plugins/code-snippets/

    2. Simple Custom CSS & JS for HTML/CSS/JS
    https://wordpress.org/plugins/custom-css-js/

    It’s a good suggestion.
    Thank you for helping us to improve our plugin.

    Best regards

    Hi, I would also be interested in this plugin to configure wp-admin. I hope this functionality in future updates.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Universal Code doesn’t works with Admin Pages’ is closed to new replies.