Creating a Centralized Stylesheet for Multiple Websites
-
Hi. I have multiple websites for different countries, all using the same style rules. Currently if I edit the CSS in one, I have to replicate the change in each different website’s stylesheet and it’s getting messy. What I’d like is to have a centralized stylesheet which all websites call upon last.
I’ve tried simply hosting a CSS file and calling it manually in the functions.php of each site. It worked to an extent, but all of the sites use the Divi theme, and this seems to pose a problem in that Divi stylesheets are called after the remote one specified in functions.php, thus Divi’s default styles are overwriting some of my custom ones.
Does anyone know a way I can do this while ensuring the remote stylesheet is called last and thus overrides any local stylesheets? Or indeed, is there a neater solution to this whole problem that I haven’t considered?
Thanks,
Dan
- The topic ‘Creating a Centralized Stylesheet for Multiple Websites’ is closed to new replies.