wordpresscsslocalhostlaragon

I am getting CSS SyntaxError, unexpected token {. But I can not see error


In Wordpress on localhost Laragon I am trying to get CSS. It throws 403 error: enter image description here

enter image description here

I can't find error, what could it be?


Solution

  • You're probably using wp_enqueue_script() Wordpress function to include your stylesheet file, and that's what could cause the error because it will call the css file using script tag.

    Try using wp_enqueue_style() function instead.