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. 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 64 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.
  • K Offline
    K Offline
    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 Offline
      RichardR Offline
      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 Offline
        K Offline
        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 Offline
          K Offline
          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 Offline
            RichardR Offline
            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
            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