I have a new project: I build a new website with exactly the same look as an existing one (new business, same owner). Therefore, I set up a new website with Joomla 4.3.1 and SKYLAR_J4. I exported the preset from the old site (still J3, because it will be shut down before August 2023) and imported it into my new site - worked like a charm. I copied the custom.css from the old site and FTPed it to the new site at the well-known place /templates/j51_skylar/css/custom.css. What happened: Absolutely nothing! My custom CSS was not used.
I suspected an error on my site. So I uninstalled SKYLAR and re-installed it. Same result. After some hours of searching, I made a test: I FTPed my custom.css to the /media/templates/site/j51_skylar/css folder. This worked immediately. Subsequently, I deleted the file from /templates/j51_skylar/css (I hate to have the same file in two different places. Inconsistent file contents in the future are highly probable!).
Everything fine then? Not quite:
- Although the /templates/j51_skylar/css/custom.css has no effect, the template seems to expect it to be there. If the file doesn't exist, my Firefox console shows errors (s. J51_Skylar_J4_V1.1.8_Issue_with_custom.css.jpg), which shouldn't be there.
- Sites which have been updated from older J4 versions still expect the custom.css at the old place. This is not documented and might drive webmasters crazy.
As a temporary solution, I have inserted a dummy custom.css to the old place /templates/j51_skylar/css:
/* Dummy for custom.css
For websites started prior to Joomla 4.3.x, this is the place to put the custom.css file.
For websites started with Joomla 4.3.x or later, the custom.css file has to be placed in
the /media/templates/site/j51_skylar/css folder.
*/
Regards
Rolf