Aslan_HoskinAslan_Hoskin MemberComments: 0 Received thanks: 0 Member since: September 2017

Hello,

I would like to change between 2 different Fonts inside the same text editor ( so I can have different fonts for headings and sub-headings ).

I used this tutorial to upload the fonts: https://shopwareianer.com/tutorials/shopware-5-eigene-web-fonts-nutzen    It worked for the first font and now all text in the shop is the first font but how do I change to the 2nd font for headings?

Thank you in advance.

Comments

  • OrangenjägerOrangenjäger MemberComments: 57 Received thanks: 10 Member since: January 2017

    There are at least two ways to do this:

    1. As you can see in the last screenshot in the tutorial, there is a @font-base-stack and a @font-headline-stack. If you replace the current content of @font-headline-stack with different fonts (like you did with @font-base-stack), the headlines should automatically use these fonts.
    2. You can adjust the rules for h1, h2... in your CSS to use a specific font with "font-family: ..."
Sign In or Register to comment.