I am developing a website locally in WordPress and then uploading it to the temporary dev server to show my progress to the management periodically.
Problem: When I upload everything to the server, I noticed that the styles in my style.css are overridden by the ones in fonts.php. This is my first time using the Wordpress platform. I don't know why, but this is not the case when I am hosting it locally. As you see in the picture, the fonts.php is declared after the style.css. Image:
What I tried: I was digging into the wordpress files to find a way to declare fonts.php first and then the style.css later so that style.css will override fonts.php. I found this file in wp-includes/theme.php where I found the style.css being declared but couldnot find for fonts.php. This was a dead-end.
Does anybody know how to do it?
Thanks Susheel for your post. It is helpful if I have to add a css file externally but didn't solve my problem which was making sure fonts.php is loaded before that.
I FOUND A SIMPLE SOLUTION. I moved all css that I wanted to override on fonts.php in adaptive.css file which is always loaded after the fonts.php file.