Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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?

    #965464

    Hey 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,
    Nikko

    #965844

    Hi 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.

    #966448

    Hi 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,
    Nikko

    #966839

    Hi 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&#8221; 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&#8217;);
    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.
    #966866

    Hi,

    Did you add the font link into the header.php file? Also what errors are you receiving?

    Best regards,
    Jordan Shannon

    #967479

    Now it works somehow. Thanks!

    #967844

    Hi,

    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,
    Rikard

    #968101

    You can close it.

    #968150

    Hi,

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Change fonts with CSS for specific parts’ is closed to new replies.