-
AuthorPosts
-
November 15, 2013 at 6:17 pm #189346
Hi,
I am using layer slider for the website
I have created text using layers on the image and i wanted to setup the font weight: extra bold 800, i am using open sans font for the text…How can i set the font weight extra bold 800?
I have added in the css but it’s doesn’t showing the font weight extra bold 800November 15, 2013 at 6:39 pm #189356Hi,
Can you post the link to your website please?
Regards,
JosueNovember 15, 2013 at 6:43 pm #189359This reply has been marked as private.November 15, 2013 at 7:17 pm #189365Hi!
That is happening because Open Sans 800 is not being included, do the following:
Open /enfold/framework/php/class-style-generator.php and look for line 194:
$this->extra_output .= '<link id="google_webfont_'.$this->webfont_count.'" rel="stylesheet" type="text/css" href="'.$prefix.'://fonts.googleapis.com/css?family='.str_replace(' ','+',$rule_split[0]).$font_weight.'" />';
Replace it by this:
$this->extra_output .= '<link id="google_webfont_'.$this->webfont_count.'" rel="stylesheet" type="text/css" href="'.$prefix.'://fonts.googleapis.com/css?family='.str_replace(' ','+',$rule_split[0]).$font_weight.',800" />';
Best regards,
Josue- This reply was modified 11 years, 2 months ago by Josue.
November 15, 2013 at 7:29 pm #189376This reply has been marked as private.November 15, 2013 at 7:57 pm #189383Hey!
Try adding this CSS to the Quick CSS:
.ls-layer:nth-of-type(2) *{ font-weight: 800; }
Result:
Best regards,
JosueNovember 15, 2013 at 8:07 pm #189387This reply has been marked as private.November 15, 2013 at 8:10 pm #189391Hi!
Well, that’s easier, use this instead:
.ls-layer h1{ font-weight: 800; }
Best regards,
JosueNovember 15, 2013 at 8:11 pm #189392This reply has been marked as private.November 15, 2013 at 8:17 pm #189397Hey!
You’ll need to add “,300” to the line i pointed in my first reply, then you’d need to equalize your first layer element (i noted that one was a p and another a span), finally simply use this code:
.ls-layer p{ font-weight: 300; }
Change p for span if you decided to use span.
Cheers!
JosueNovember 15, 2013 at 8:48 pm #189422This reply has been marked as private.November 15, 2013 at 8:52 pm #189423Hey!
They look the same here, remember to remove the previous code i provided.
Best regards,
JosueNovember 15, 2013 at 8:57 pm #189426This reply has been marked as private.November 15, 2013 at 9:02 pm #189429Hi!
You are using 100, use 300.
.ls-layer p{ font-weight: 300; }
But first:
You’ll need to add “,300″ to the line i pointed in my first reply.
Regards,
JosueNovember 15, 2013 at 9:33 pm #189434This reply has been marked as private.November 15, 2013 at 9:34 pm #189435This reply has been marked as private.November 15, 2013 at 10:05 pm #189440You are welcome, glad we could help :)
Regards,
Josue -
AuthorPosts
- The topic ‘Enfold slider image text font’ is closed to new replies.