Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Fallback for my Text Formats

Fallback for my Text Formats

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 88 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • fabiandraxlF Offline
    fabiandraxlF Offline
    fabiandraxl
    wrote on last edited by
    #1

    Hey there,

    Just noticed that on certain older browser versions the text formats built on WOFF2 files are not displayed correctly or are replaced by Times New Roman by default. Is it possible here at least somehow to integrate a specified fallback to the default fonts for each Text Format for my page?

    Would like to generate different fallbacks for each format.

    For example:
    Format XY with sans serif webfont XY = Helvetica, Arial (fallback)
    or format YZ with serif webfont YZ = Times New Roman, Georgia ...

    Thank you very much!
    Fabian

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear Fabian

      @fabiandraxl

      It should be fine to apply fallback to Text Formats šŸŒ
      In this thread Armin explains adding CSS to the Text Format:

      http://laythemeforum.com:4567/topic/917/activate-styllistic-sets/6|

      <style>
      ._Default{
           font-family: Merriweather, Impact, Serif;
      }
      </style>
      

      https://css-tricks.com/css-basics-fallback-font-stacks-robust-web-typography/


      Helpful Links:

      https://laytheme.com/documentation/textformats-and-webfonts.html

      http://laythemeforum.com:4567/topic/6476/font-encoded-in-base64/4


      Best wishes Fabian! ā­ļø
      Richard
      fabiandraxlF 1 Reply Last reply
      0
      • RichardR Richard

        Dear Fabian

        @fabiandraxl

        It should be fine to apply fallback to Text Formats šŸŒ
        In this thread Armin explains adding CSS to the Text Format:

        http://laythemeforum.com:4567/topic/917/activate-styllistic-sets/6|

        <style>
        ._Default{
             font-family: Merriweather, Impact, Serif;
        }
        </style>
        

        https://css-tricks.com/css-basics-fallback-font-stacks-robust-web-typography/


        Helpful Links:

        https://laytheme.com/documentation/textformats-and-webfonts.html

        http://laythemeforum.com:4567/topic/6476/font-encoded-in-base64/4


        Best wishes Fabian! ā­ļø
        Richard
        fabiandraxlF Offline
        fabiandraxlF Offline
        fabiandraxl
        wrote on last edited by
        #3

        Hej @Richard,

        Thanks for your answer!

        So is it enough if I add the following Code to my page (https:fabiandraxl.com) under Custom Code:

        ._default{
            font-size: 17px;
            line-height: 1.45;
            font-family: arial;
            letter-spacing: -0.55px;
            word-spacing: 0px;
            font-weight: 500;
            colour: black;
            visibility: visible;
        }
        

        Would I have to do this for every text format (HTML class)? Won't this overwrite my original text format? How can I check if it worked, do you have a recommendation to test the page?

        Thank you, Fabi

        1 Reply Last reply
        0
        • RichardR Offline
          RichardR Offline
          Richard
          Global Moderator
          wrote on last edited by
          #4

          Dear Fabi

          @fabiandraxl

          You may wish to look into how fallback fonts work again,

          https://www.w3schools.com/css/css_font_fallbacks.asp

          The following code:

          ._default{
              font-size: 17px;
              line-height: 1.45;
              font-family: arial;
              letter-spacing: -0.55px;
              word-spacing: 0px;
              font-weight: 500;
              colour: black;
              visibility: visible;
          }
          

          Will only define a single font family 'arial' along with some font properties (size, weight etc) . I dont think the code specifies any fallback.

            font-family: "Times New Roman", Times, serif;
          

          Best
          Richard
          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          I also code custom websites or custom Lay features.
          šŸ’æ Email me here: šŸ’æ
          info@laytheme.com

          Before you post:
          1. When using a WordPress Cache plugin, disable it or clear your cache.
          2. Update Lay Theme and all Lay Theme Addons
          3. Disable all Plugins
          4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

          This often solves issues you might run into

          When you post:
          1. Post a link to where the problem is
          2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
          3. If the problem is difficult to explain, post screenshots / link to a video to explain it
          Online Users
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
          laytheme.com
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search