-
AuthorPosts
-
November 11, 2016 at 4:09 pm #711217
Hello, help me. I use TEXT BLOCK for 3 things on the site.
1 – Title bar (within the pages)
2 – Text paragraph
3 – DescriptionEach item above has its formatting with different font.
I will use PLUGIN GOOGLE FONTS to customize the fonts (the fonts do not carry the code below). Can I use CUSTOM CSS CLASS to individualize the above items? How I do? Is there a simpler way?
CODE I USE FOR ITEM 1 UP (do not load the font).
/
<P style = “font-family: ‘Oswald’, sans-serif font-size: 31px; text-align: center; letter-spacing: 3px; line-height: 1.7em; color: # 000000; ENPRO ENGINEERING AND PROJECTS </ p>/
LINK
(http://enpro.com.br/enproml03/a-enpro-engenharia-projetos)November 14, 2016 at 5:34 am #711765Hey mleite1,
Please try the following instead:
<p style="font-family:'Oswald', sans-serif; font-size:31px; text-align:center; letter-spacing:3px; line-height:1.7em; color:#000;">ENPRO ENGINEERING AND PROJECTS</p>
If you are looking to learn basic HTML and CSS there are great resources at w3schools.
Best regards,
RikardNovember 16, 2016 at 10:34 am #712821Rikard, thanks for the feedback. I used your code and did not load the font on my screen. Be yourself.
LINK
What could be happening?
November 16, 2016 at 12:08 pm #712858Hi,
It’s displaying Oswald on my end, if you want to make sure what font is being used you can try installing a plugin called WhatFont? in your browser. I’m not sure what browsers it’s available in but you can at least get it for Chrome.
Best regards,
RikardNovember 16, 2016 at 1:02 pm #712877Rikard, in none of my 9 Macs here in the office does the screen load. Even in friends’ offices it also does not load.
I do not know what to do.November 16, 2016 at 1:27 pm #712883On mobile and on tablet also does not load.
November 16, 2016 at 3:47 pm #712951November 16, 2016 at 3:52 pm #712957I just saw. Amazing. I do not know what to do then.
Thanks Rikard.
November 16, 2016 at 7:02 pm #713130Rikard, one more thing. On iphone and tablet how do you load these fonts?
November 16, 2016 at 11:29 pm #713268Hi!
Please refer to this post – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/ to add additional Google fonts and do not use the plugin. Then you can choose the font in Enfold theme options and would work fine on all devices.
Regards,
YigitNovember 17, 2016 at 12:25 am #713294Yigit, I was confused. See if this will work. I want to add the Roboto Light font. See below.
Add_filter ( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
Function avia_add_heading_font ($ fonts)
{
$ Fonts [ ‘Roboto Light’] = ‘Roboto Light: 400,700,400italic, 700italic’ ‘;
$ Fonts [ ‘Roboto Condensed’] = ‘Roboto Condensed: 400,700,400italic, 700italic’;
Return $ fonts;
}November 17, 2016 at 12:26 am #713295This code I use for what?
<Link href = “https://fonts.googleapis.com/css?family=Robot+Condensed” rel = “stylesheet”>
November 17, 2016 at 4:14 pm #713621Hi!
Please create a temporary admin login and post it here privately.
Also, please once again elaborate on the exact changes you would like to make so we can apply them for you.Regards,
YigitNovember 17, 2016 at 6:50 pm #713692Yigit, thank you very much for your support. You are 10.
I want to use the following sources on the site desktop and mobile/tablets:
– PT Snas Narrow (regular and bold)
– Roboto Condensed (light, regular and bold)
– Open Sans Condensed (3 styles)
– Roboto Slab (4 styles)Let me know what will be done for me to do the same thing on the other sites. I want to use default for other sites as well.
November 18, 2016 at 4:38 am #713806Hi,
I have added the codes to your theme. Please use custom CSS codes to apply it to your selected elements as following
.your-custom-text { font-family: 'Roboto Slab', serif!important; }
Best regards,
YigitNovember 18, 2016 at 2:48 pm #714039Thank you Yigit. Did you put the other sources in the code? Where can I see this code? Is it in the FUNCTIONS.PHP file? Which lines?
November 18, 2016 at 2:51 pm #714042Hey!
You can find the code i added in the bottom of functions.php file in Appearance > Editor :)
Best regards,
YigitNovember 18, 2016 at 2:56 pm #714045Many thanks for the help Yigit.
November 18, 2016 at 3:01 pm #714049 -
AuthorPosts
- The topic ‘TEXT BLOCK DIFFERENT FONT TYPE’ is closed to new replies.