one stylesheet for two wordpress installations – Education Career Blog

I need an easy way to load the same style sheet for two different installations of wordpress. One is at main.com and the other is at main.com/secondary. Thanks.

,

Hardcode your stylesheet link to wherever it’s actually stored.

<link rel="stylesheet" type="text/css" href="http://example.com/css/yourstylesheet.css">

Don’t use a relative link that looks like css/yourstylesheet/.

,

I got it! Inside main.com/secondary/wp-content/themes/mytheme/style.css, I removed all the code and inserted

@import url(main.com/wp-content/themes/mytheme/style.css);

and then added some code for the specific secondary banner. This of course overrides the banner definition in the imported file because of the cascade.

I would like to credit themeshaper.com/wordpress-child-theme-basics/
which gave me the basic idea. (I’m sort of doing the opposite of a child theme.)

Leave a Comment