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 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. # 1
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. # 2
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. # 3
  • Page :
  • 1


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

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok