Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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. Possible to have different mobile & desktop text styles when mobile version is 'turned off'?

Possible to have different mobile & desktop text styles when mobile version is 'turned off'?

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 313 Views 1 Watching
  • 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.
  • K
    K
    kl
    wrote on last edited by
    #1

    Hi there - I've turned off my mobile by going into the Lay Options > Phone Breakpoint (set that to 0) in order to get the columns / gridder effect that I have on desktop for mobile.

    Though, I'd like to still change the type size for my text formats on mobile. Is there a way to do this?

    I've tried a bunch of different options to achieve this scouring through the support forums, but I can't seem to find a solution that allows me to have different mobile & desktop type style (specifically different font-sizes), while the mobile functionality is turned off.

    Conversely, if there's a way to turn mobile back 'on', and then get the same gridder look as desktop, that would work too.

    Thanks in advance!

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

      Dear @kl

      I think there are a few options to think about.

      When clicking on the phone layout icon in the top-right of the Gridder, we can select the same layout for mobile too:
      Screen Shot 2021-02-27 at 11.38.56 AM.png

      Different Font-sizing based on Mobile or Desktop has already be built into Lay Theme and can be set within Text-formats, but if you really want your mobile breakpoint to not exist then these wont be applied.

      If this is not an option for you, targeting the Text and applying Custom CSS may suit.

      Within 'Lay Options - Custom CSS & HTML' there is a Mobile CSS area that has a built in 'media query' so that it will only be applied to a certain screen size.

      In "Text Formats' you may notice that each format has its own HTML class - you can use this to target that text format and apply CSS

      E.g -- Class:_default -- fontsize :24px:

      ._default{
      font-size:24px;
      }
      

      adding the following code within the Custom CSS area will make the text format:default get a font-size of 24px.
      (note: this could be px , em, % , vw vh or any other css unit: https://www.w3schools.com/cssref/css_units.asp)

      It would help to read on the documentation page about CSS if this is what you need:
      https://laytheme.com/documentation.html#custom-css-styling

      It is possible to have different text formats for Mobile & desktop, thats the main thing :)

      Have a wonderful day & best wishes

      Richard

      1 Reply Last reply
      0
      • K
        K
        kl
        wrote on last edited by
        #3

        Thanks so much Richard for this reply!

        I'm curious, and perhaps I'm not understanding two things, but

        1. I don't seem to have a phone layout icon in the top right of the gridder? See screenshot below
          d03e2148-ddfe-4392-bc72-ad2b0c8c76e4-image.png

        2. Will targeting the text with custom CSS work even if the mobile breakpoint does not exist? I can't seem to get this to work, and have tried this in the Custom CSS area. Perhaps my syntax is wrong? I've been using ._H1 and ._H2 and ._default

        Thank you so much for your help!

        1 Reply Last reply
        0
        • K
          K
          kl
          wrote on last edited by
          #4

          Ahh I see - it works when I put the custom CSS in the general CSS area vs. the mobile CSS area.

          This clears this up. Thank you for your help!

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

            Dear @kl

            No worries :)
            Best of luck with the rest of your project!

            Richard

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            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