fbpx

Xmas is coming - Grab 30% Discount on all Joomla Template. Coupon Code: PRECHRISTMAS Unlock Offer

Welcome, Guest
Username: Password: Remember me

TOPIC: Custom CSS Files

Custom CSS Files 6 days 23 hours ago #9836

  • marvays
  • marvays's Avatar
  • Offline
  • Junior Member
  • Posts: 33
  • Karma: 0
Hi. I have Custom CSS Files . . . . custom.css


In the template this custom.css work.


But in dev tool in chrome i have message:

The administrator has disabled public write access.

Custom CSS Files 6 days 23 hours ago #9837

  • marvays
  • marvays's Avatar
  • Offline
  • Junior Member
  • Posts: 33
  • Karma: 0
I think the builder writes the custom css location to the 2x code (one wrong as an absolute file location)
The administrator has disabled public write access.

Custom CSS Files 6 days 19 hours ago #9838

  • marvays
  • marvays's Avatar
  • Offline
  • Junior Member
  • Posts: 33
  • Karma: 0
Next problem. In body setup font-weight 400, in page is 300 :(



The administrator has disabled public write access.

Custom CSS Files 6 days 19 hours ago #9839

  • marvays
  • marvays's Avatar
  • Offline
  • Junior Member
  • Posts: 33
  • Karma: 0
I have another insight.
BODY I can set the font size to "em". But where do I set the default font value? I miss the "HTML" entry setting where I would set the font size and font size for the entire site as the highest item. But the font value is only in px. From this value I can then set "em" in "points" :)
The administrator has disabled public write access.

Custom CSS Files 6 days 11 hours ago #9844

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1331
  • Thank you received: 188
  • Karma: 37
marvays wrote:
Hi. I have Custom CSS Files . . . . custom.css


In the template this custom.css work.


But in dev tool in chrome i have message:



Hello,

Replies in order:
1. custom.css is a core astroid file and will be included automatically if exists in the css folder.
2. Your second file's location is JOOMLAROOT/templates/astroid_template_zero/css/custom-komponenty.css but Astroid is looking for it at JOOMLAROOT/custom-komponenty.css, change the path to templates/astroid_template_zero/css/custom-komponenty.css in the backend and that will fix it.
3. The reason you have error is custom.css is because it's trying to load custom.css from the root at JOOMLAROOT/custom.css. Remove custom.css since it's included by the core.
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

Custom CSS Files 6 days 11 hours ago #9845

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1331
  • Thank you received: 188
  • Karma: 37
marvays wrote:
I think the builder writes the custom css location to the 2x code (one wrong as an absolute file location)

Hello Again,

The reason you have it twice is because Astroid already adds the custom.css file automatically (once) and since you added the file to the custom css field in the backend, it's appearing twice in the source code.

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

Custom CSS Files 6 days 11 hours ago #9847

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1331
  • Thank you received: 188
  • Karma: 37
marvays wrote:
Next problem. In body setup font-weight 400, in page is 300 :(




Hello,

this is working just fine. I have tested with 400, 500 and 700 and all appear exactly the same. Double check your settings and make sure they are in the body typography and also make sure that you are not overriding it with custom css or anything else.

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

Custom CSS Files 6 days 11 hours ago #9848

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1331
  • Thank you received: 188
  • Karma: 37
marvays wrote:
I have another insight.
BODY I can set the font size to "em". But where do I set the default font value? I miss the "HTML" entry setting where I would set the font size and font size for the entire site as the highest item. But the font value is only in px. From this value I can then set "em" in "points" :)

You can change between the variants by selecting px, em, rem or pt and then type in a number, that number and variant will be valid.

i.e. If you select pt and type in 5. Your font size would be 5pt and so on.

Please see the attached gif as far as how you can plan with the settings.
Attachments:
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

Custom CSS Files 6 days 4 hours ago #9852

  • marvays
  • marvays's Avatar
  • Offline
  • Junior Member
  • Posts: 33
  • Karma: 0
admin wrote:
marvays wrote:
I have another insight.
BODY I can set the font size to "em". But where do I set the default font value? I miss the "HTML" entry setting where I would set the font size and font size for the entire site as the highest item. But the font value is only in px. From this value I can then set "em" in "points" :)

You can change between the variants by selecting px, em, rem or pt and then type in a number, that number and variant will be valid.

i.e. If you select pt and type in 5. Your font size would be 5pt and so on.

Please see the attached gif as far as how you can plan with the settings.

Yes. You're right. But you did not understand me :) "em" is the height of one line of the basic font. Where can i setup mbasic font?
The administrator has disabled public write access.

Custom CSS Files 5 days 10 hours ago #9866

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1331
  • Thank you received: 188
  • Karma: 37
Hello,

Those values are hardcoded in the core CSS files. I's suggest overriding them in the custom.css file by writing your own CSS.

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.
Moderators: priyasingh
Time to create page: 0.396 seconds