-
AuthorPosts
-
June 1, 2018 at 3:32 pm #965416
Hi,
I like to change the font for one part of my website (a quote) to the Google font Swanky and Moo Moo.I already activated “Show element options for developers” and read many threads but I don’t know what do do and it really frustrates me because I just want to change the font for a part of my website but I am not familiar with custom css.
Can anyone give me a step by step instruction?June 1, 2018 at 5:21 pm #965464Hey MrJoscha,
First you need to check this in order for you to https://kriesi.at/documentation/enfold/typography/ then check on How to upload custom fonts and the content below it.
Then if you’ve checked Show element options for developers, when you edit any element in Avia Layout Builder, you should see this field at the bottom Custom Css Class
You can add for example moo then go to Enfold > General Styling > Quick CSS, and add this css code:.moo { font-family: 'Moo Moo', sans-serif !important; }
if font is properly added then it should display the right font properly.
If that doesn’t work, please post the link to the page where you applied the class so we can check further.Best regards,
NikkoJune 2, 2018 at 1:17 pm #965844Hi Nikko,
it is not working. Something has to be wrong.
then check on How to upload custom fonts and the content below it.
I added @import url(‘https://fonts.googleapis.com/css?family=Swanky+and+Moo+Moo’);
Then if you’ve checked Show element options for developers, when you edit any element in Avia Layout Builder, you should see this field at the bottom Custom Css Class
Done.
You can add for example moo
I added a css class called Zitat
then go to Enfold > General Styling > Quick CSS, and add this css code:
.moo {
font-family: ‘Moo Moo’, sans-serif !important;
}I added
.Zitat {
font-family: ‘Swanky+and+Moo+Moo’, sans-serif !important;
}if font is properly added then it should display the right font properly.
If that doesn’t work, please post the link to the page where you applied the class so we can check further.Pleasecheck the website link in the private content.
June 4, 2018 at 11:17 am #966448Hi MrJoscha,
Instead of using:
.moo { font-family: ‘Moo Moo’, sans-serif !important; }
Please use:
.moo p { font-family: 'Swanky and Moo Moo', cursive !important; }
As for Zitat, please replace it with:
.Zitat p { font-family: 'Swanky and Moo Moo', cursive !important; }
Hope it helps :)
Best regards,
NikkoJune 4, 2018 at 9:47 pm #966839Hi Nikko,
sorry it’s not working. I make a mistake somewhere. I use the child theme.
I added this:
<link href=”https://fonts.googleapis.com/css?family=Swanky+and+Moo+Moo” rel=”stylesheet”>
.Zitat p {
font-family: ‘Swanky and Moo Moo’, cursive !important;
}If I add it to the quick CMS nothing happens. If I add it to the style.css I get tons of errors.
I also tried
@import url(‘https://fonts.googleapis.com/css?family=Swanky+and+Moo+Moo’);
Then I’ll get no errors but nothing happens.Is there anything else I have to do?
- This reply was modified 5 years, 11 months ago by MrJoscha.
June 4, 2018 at 10:47 pm #966866Hi,
Did you add the font link into the header.php file? Also what errors are you receiving?
Best regards,
Jordan ShannonJune 5, 2018 at 9:04 pm #967479Now it works somehow. Thanks!
June 6, 2018 at 1:40 pm #967844Hi,
Great, glad you got it working :-)
Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJune 6, 2018 at 11:04 pm #968101You can close it.
June 7, 2018 at 2:52 am #968150Hi,
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
Vinay -
AuthorPosts
- The topic ‘Change fonts with CSS for specific parts’ is closed to new replies.