theme style is applied on the dhasboard rather than the website

Question

I am creating a new theme, I created a new directory called mytheme and created three files directly inside the directory where the content is as follow:
index.php

<?php echo "hellow world"; ?>

style.css

/*
Theme Name: mytheme
*/
body {background: red}

functions.php

<?php
wp_enqueue_style( 'style', get_stylesheet_uri() );
?>

the problem: the dashboard is colored in red.
expectations: the website itself to be colored in red.
thank you

0
Amine 3 weeks 2021-04-25T12:07:18-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse