Tagged: x
-
AuthorPosts
-
July 24, 2016 at 11:14 pm #1101320
eomedicalParticipantHi,
I have a heading with class “responsive-h1”, and I want the font-weight to be 100.
But the font-weight display is still normal weight.The code I added to the custom css editor is:
@import url(“//fonts.googleapis.com/css?family=Roboto:100,300,400,700,900”);
.responsive-h1 {
font-family:’Roboto’, sans-serif;
font-size:38px;
margin:20px 0 0 0;
font-weight:100 !important;
}The URL is http://eogroup.asia/products/infection-control/automated-disinfection/
I had tried add in the javascript as well, but no luck to get the font-weight.
Thanks & Best Regards,
SimJuly 25, 2016 at 12:27 am #1101365
ChristopherModeratorHi there,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Please add following code in child theme’s style.css file :
@import url(https://fonts.googleapis.com/css?family=Roboto:100,300,400,700,900);Hope it helps.
July 25, 2016 at 3:03 am #1101491
eomedicalParticipantThanks! it helps.
Best Regards,
SimJuly 25, 2016 at 3:08 am #1101494
ChristopherModeratorYou’re welcome.
September 7, 2016 at 11:02 pm #1165767
eomedicalParticipantHi Christopher,
I just removed the following code from my child theme css:
@import url(“//fonts.googleapis.com/css?family=Roboto:100,300,400,700,900”);
.responsive-h1 {
font-family:’Roboto’, sans-serif;
font-size:46px;
font-weight:100 !important;
}But the heading with class .responsive-h1 still remained unchanged.
The title “Making Lives Better” from home page is one of those heading with class .responsive-h1
The font-weight is still 100 instead of 700 set in customizer, since I already removed the css from child theme.My URL is: eogroup.asia
Kindly advise.Thanks & Best Regards,
SimSeptember 8, 2016 at 2:15 am #1165949
FriechModeratorHi Sim,
Please keep this line:
@import url(https://fonts.googleapis.com/css?family=Roboto:100,300,400,700,900);You need that line to request that font from Google.
Please clear your browser’s cache as Making Lives Better headline is weight 700 on my end.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1101320 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
