• Resolved jmccoy78

    (@jmccoy78)


    Hello,

    Can I use your plugin if I just want to add CSS styling to my website rather than using the Customiser in wordpress?

    I would like to create a new snippet and then add the CSS code into this and activate.

    Thanks.

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

    (@bungeshea)

    Yes, you can copy this template for making CSS snippets:

    add_action( 'wp_head', function () { ?>
    <style>
    
    /* css code goes here */
    
    </style>
    <?php } );
    Thread Starter jmccoy78

    (@jmccoy78)

    Hi Shea,

    That worked – thats for the help ??

    Hi. I tried to insert a css and it works for the frontend but not for the admin section. For example, I’m trying to change the color of the admin sidebar with a snippet but it doesn’t work. Thank you for your help!

    Plugin Author Shea Bunge

    (@bungeshea)

    If you want to add CSS in the admin section, you will need to use the admin_head hook instead of wp_head.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CSS Styling’ is closed to new replies.