1. Oliver
  2. Sherlock Holmes The Voice
  3. Commercial Templates
  4. Thursday, 24 March 2022
  5.  Subscribe via email
Hello Ciaran,
today we did an J4 update to a customer website and installed J51 Emani as new template.
As always I configured the template option "custom.css" to YES.
In the database the value looks ike this: "customcss_sw":"1"
But in frontend there is no custom.css available.
The file "custom.css" is available on the server under "/templates/j51_emani/css" directory.
Caching is disabled.

If I add the css code to the custom csss field in the template options, then it works as expected...

Maybe I have done something wrong, but I have no idea. I have done this on more than 50 sites with your templates and it worked always but not in this case.... no clue...

Regards
Oliver
References
  1. http://test.meisterhaus-heufeld.de
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,
as I have seen you have changed the template file structure like the Cassiopeia template so one can work with child templates. Awesome!

So I have added my custom.css to the new folder under "media/templates/site/j51_emani/css".
But no change, the custom.css is not added to the sites sourcecode.
Maybe something is missing here?

And btw: the description in the template options should then point to (../media/templates/[YourTemplate]/css/custom.css) - right?
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Oliver

A quick update on this issue. I suspect this is related to the following issue in core where the #_template_styles->inheritable table is not getting updated on previously created template styles... https://github.com/joomla/joomla-cms/issues/37057

I am looking into a workaround to update this column during the template install, until at least the issue is resolved in core. However, in the meantime, you should find that if you edit your table and set the inheritable column to 1 manually the issue should be resolved and your custom.css will be loaded from your ../media/site/[YourTemplate/css folder.

And yes, this description should indeed be updated. Thank you for pointing this out :)

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Ciaran,
works fine now!
Regards
Oliver
  1. more than a month ago
  2. Commercial Templates
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!