Tagged: x
-
AuthorPosts
-
June 28, 2016 at 2:02 pm #1063756
Alejandro Jose SParticipantHello,
As the title implies I have a very weird problem: I can’t change the font-weight property of a custom headline.
Right now it (custom headline) has a w-300 class and a custom CSS:
.w-300{ font-weight: 300 !important; }But it just doesn’t work, not even on the inspector.
I first thought it was because of the background image (it uses the link of the original source’s site) but I removed it and it still doesn’t work. Am I doing something wrong?
June 28, 2016 at 2:07 pm #1063759
Alejandro Jose SParticipantThis reply has been marked as private.June 28, 2016 at 5:00 pm #1063932
JadeModeratorHi there,
I checked the page you have provided above and the font weight of the custom headline is working correctly. Were you able to sort out the issue?
June 29, 2016 at 4:55 am #1064551
Alejandro Jose SParticipantNo, that’s the weird part, it seems to have a 300 font-weight (even the inspector shows a 300 font-weight) but the one showed is the same as the one above which is a font-weight: 600;
I can pretty much customize everything through CSS (color, background color/img, font style, font size etc) BUT the font-weight which is very very weird.
By the way, i don’t have any caching plugin, CDN or any optimization code whatsoever, so at least that’s not it.
June 29, 2016 at 6:27 am #1064655
ChristianModeratorHey Alejandro,
That is because the font weight you’ve selected is 600 (see attachment). The w-300 class will only work if the specific font weight is available.
Thanks.
June 29, 2016 at 10:09 am #1064982
Alejandro Jose SParticipantThe 300 weight for raleway is available (even in customizer).
I did choose the 600 weight on the customizer as most of my headlines will use that one (and i want 600 to be the default weight) but i want some specific headlines to use the 300 font weight property instead, but for some reason it just doesn’t work. could you tell me if by any chance i’d have to import and declare this font again, this time with the 300 weight as the default in the page or something like that? (as if i’d be using the font for the first time)
Because it seems to be there in the inspector as well but it’s not showing the correct weight, it only shows the default one (600)
thanks.
June 29, 2016 at 11:30 am #1065098
LelyModeratorHi There,
Upon checking Raleway 300 is not available on your site. See attached screenshot. Available fonts are the following only:
Open Sans 400, 400 italic, 700, 700italic Raleway 600 700 Lato 700To use the 300 font weight of Raleway, add the following line on your child theme style.css file at the very first line:
@import url(https://fonts.googleapis.com/css?family=Raleway:300);Hope this helps.
June 29, 2016 at 11:34 am #1065105
Alejandro Jose SParticipantreally? so weird! i just used in on the customizer 😮
However, cool thanks!June 29, 2016 at 11:39 am #1065109
RahulModeratorYou are welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1063756 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
