• I am migrating a custom website to WordPress and when pasting my CSS to style.css, it affects the WP backend and basically ruins it. Any ideas on how to prevent this?

    Thanks.

    • This topic was modified 4 years, 7 months ago by Jan Dembowski.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What style.css file are you editing? Do not edit files that are wordpress core!

    Thread Starter fvl1987

    (@fvl1987)

    Hi, thanks for your help. I created a new theme, created the style.css and started working from there. Some changes reflected on the WP backend and I don’t understand why.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Are you loading/enqueuing your CSS on the back end?

    Thread Starter fvl1987

    (@fvl1987)

    Not sure, to be honest. It’s my first time with this, I am enqueuing it using the following function from the functions.php file. Without it, my styles wouldn’t load:

    <?php wp_enqueue_style( ‘style’, get_stylesheet_uri() ); ?>

    Thanks.

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