ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Make your Fonts Responsive with Font Clamp - Shrink and Enlarge - Elementor Wordpress Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ย. 2022
  • Using Elementor's breakpoints for Desktop, Tablet, Mobile Font Sizes is fine but you will notice jumps in the fonts as you shrink and grow your page size.
    How can you make it more responsive?
    With... FONT CLAMP!
    And this video will take you through HOW and WHY :)
    Here's a Free Tool to massively help you with the Clamp Code: clamp.font-size.app/
    Make your Fonts Responsive with Font Clamp - Shrink and Enlarge - Elementor Wordpress Tutorial
    We love to create - share - respond - and deliver.
    🧐 Learn with our Mastery Modules: websquadron.co.uk/web-design-...
    🔗 All of our Important Links: websquadron.co.uk/socials/
    😃 Join our Facebook Group: / 3309523509284305
    😃 Get Code Snippets Pro: r.freemius.com/10565/3304295/
    😃 Get Elementor Pro: be.elementor.com/visit/?bta=2...
    😃 Boost your TH-cam Analysis: www.tubebuddy.com/websquadron
    👕 Get our Merchandise: websquadron.co.uk/merchandise
    🥹 Support us: paypal.me/Websquadron
    Hire us to work on your Website!
    💌 info@websquadron.co.uk
    👩‍💻 Visit websquadron.co.uk

ความคิดเห็น • 59

  • @mazlanhalim9141
    @mazlanhalim9141 หลายเดือนก่อน

    Font clamp is a cool css function, thanks for sharing Imran.

  •  หลายเดือนก่อน

    This is good for headings, not for long texts where you can't adjust the line height based on size of the font.

  • @stevemarrs3149
    @stevemarrs3149 ปีที่แล้ว +2

    This solves my issue from earlier this week - will sit and go through my font sizes at the weekend.

  • @jaoortega
    @jaoortega ปีที่แล้ว +6

    I can't express my appreciation enough.. this solves a lot of my issues.. thank you brother for bringing this up..

    • @websquadron
      @websquadron  ปีที่แล้ว +1

      You are most welcome

  • @WilhelmCazimirovici
    @WilhelmCazimirovici 6 หลายเดือนก่อน

    Great video about font responsiveness! Thank you!

  • @NOALNOM
    @NOALNOM ปีที่แล้ว +7

    Another super clever way to set clamp globally is this:
    h1, h2, h3, p {
    font-size: clamp(
    var(--fluid-type-min, 1rem),
    calc(1rem + var(--fluid-type-target, 3vw)),
    var(--fluid-type-max, 1.3rem)
    );
    }
    h1 {
    --fluid-type-min: 2.5rem;
    --fluid-type-max: 5rem;
    --fluid-type-target: 5vw;
    max-width: 15ch;
    }
    h2 {
    --fluid-type-min: 2rem;
    --fluid-type-max: 4.5rem;
    --fluid-type-target: 4vw;
    }
    h3 {
    --fluid-type-min: 1.5rem;
    --fluid-type-max: 2.5rem;
    }
    h2, h3 {
    max-width: 30ch;
    }
    p {
    --fluid-type-min: 0.9rem;
    --fluid-type-max: 1rem;
    --fluid-type-target: 2vw;
    max-width: 60ch;
    }
    // AMAZING HUH?

    • @rendeta.studio
      @rendeta.studio 4 หลายเดือนก่อน

      where to put this in elementor?

  • @saucydee1
    @saucydee1 ปีที่แล้ว +2

    Fantastic. I'm going to fix this tomorrow!

  • @user-wm2ep3sh9o
    @user-wm2ep3sh9o ปีที่แล้ว

    An extraordinary guide!

  • @soraclemedia
    @soraclemedia ปีที่แล้ว

    Excellent work. Keep it up.

  • @borisnieminen677
    @borisnieminen677 ปีที่แล้ว

    Thanks Imran, that was great, cheers

  • @theskatingchoreographer
    @theskatingchoreographer ปีที่แล้ว +3

    First one to like, first one to watch, first one to comment, first one to enjoy (yet again) your amazing content my friend! I'm on the top of my game and so you are ;)

    • @websquadron
      @websquadron  ปีที่แล้ว +3

      Big thanks. This video has been long overdue and I was always worried about explaining it and making sense of it. Luckily the tool helps to get the correct code across better :)

  • @bySterling
    @bySterling ปีที่แล้ว +1

    This is fantastic 🎉

  • @dicky3925
    @dicky3925 ปีที่แล้ว +2

    Thankyou! responsive super smooth!

  • @ChillFox_
    @ChillFox_ 2 หลายเดือนก่อน +1

    Saving the day.

  • @mrrobotweb
    @mrrobotweb ปีที่แล้ว +1

    thanks a million,, this helped me with my work.

  • @fabrictexture4767
    @fabrictexture4767 ปีที่แล้ว +1

    My Matter Solved, thank you

  • @NOALNOM
    @NOALNOM ปีที่แล้ว +1

    Containers Queries are another gift from God 🎁😍😅😍😍😍

  • @NOALNOM
    @NOALNOM ปีที่แล้ว +1

    Clamp function is like a gift from God 🎁😍😅

  • @PicSta
    @PicSta ปีที่แล้ว +5

    Clamp is like min, a desired size, and a max size for the text. The min and the max are pretty much self-explanatory, but the two values for the desired width is the important part. The vw unit alone causes issues with zoom sizes (scaled resolutions) but the rem unit makes it zoomable. Try to zoom the text without the rem for the middle value, it fails. I hope this helps to understand it even better.

    • @websquadron
      @websquadron  ปีที่แล้ว +1

      Nice one :)

    • @user.94827
      @user.94827 ปีที่แล้ว

      I understand it, but the concern is when Browser Zoom feature is triggered why doesn't it affect Viewport Width. If it did so, VW would be the greatest Unit.

    • @websquadron
      @websquadron  ปีที่แล้ว

      Good point - not completely sure

    • @PicSta
      @PicSta ปีที่แล้ว

      @@user.94827 Yes, that's sad, but you can mix units. A common way to make it zoomable is to use vw + rem value.

    • @user.94827
      @user.94827 ปีที่แล้ว

      @@PicSta It only makes small difference. Just to give user a false sense of zoom out. Another things what's the max size you're designing a website. Nowadays, desktop have become so huge.

  • @johnboyd8053
    @johnboyd8053 ปีที่แล้ว +2

    I found that within the app, I can change the PX to REM. I'm hoping this will make it even more usable.

  • @elevateyourcreativeness
    @elevateyourcreativeness ปีที่แล้ว +2

    Is there any improvement on SEO scores using clamp vs pixels or rem? Moreover for accessibility issues?

    • @websquadron
      @websquadron  ปีที่แล้ว +2

      Good question.
      I would hazard a guess that although it won't improve SEO, it would impact on better accessibility.

  • @lucylink7975
    @lucylink7975 ปีที่แล้ว

    I can't tell you the amount of time I have spent fiddling about making a standard, reusable/adaptable set of @media queries for big text areas in the last couple of months. And along you come with this. I just dumped mine, this is brilliant and you sir are a hero.
    One question, if you are going to use this site-wide, what do you put in the global styles? Or do you just leave them unset?

    • @websquadron
      @websquadron  ปีที่แล้ว +1

      I leave them unset :)

    • @lucylink7975
      @lucylink7975 ปีที่แล้ว

      @@websquadron So glad. I don't like using global styles much at all but always feel guilty when I don't (for some reason or another, not even sure why lol)

  • @ekikoo
    @ekikoo ปีที่แล้ว

    Hi! Could this idea be implemented to nav menus that have many pages, to prevent that on smaller laptop screens the menu items stack into two rows? Assuming there's a logo on the left side, and social icons on the right side of the menu column... Thanks!

    • @websquadron
      @websquadron  ปีที่แล้ว +2

      Yes as ling as you remove the Toggle Breakpoint in your Nav Settings

  • @hammadshahzad7738
    @hammadshahzad7738 4 หลายเดือนก่อน

    Hey isn't it same as vw?

  • @nemo6630
    @nemo6630 ปีที่แล้ว

    hello, can we hope for an update of this same tutorial ? because with 3.10 we can do it natively but I can't find any documentation

  • @IsaacTannerDempsey
    @IsaacTannerDempsey ปีที่แล้ว

    could you do a dirty fast version on this em or rem. Better share the code to paste in the that includes all the title styles h1, h3 ect tags

    • @websquadron
      @websquadron  ปีที่แล้ว +1

      I would always say do REM for font

  • @tas5247
    @tas5247 ปีที่แล้ว +1

    Is it not the same thing to use vh as the font size in elementor?

    • @websquadron
      @websquadron  ปีที่แล้ว +2

      You could, but I don't like using that. REM all the way.

    • @tas5247
      @tas5247 ปีที่แล้ว +1

      @@websquadron ok thanks!

  • @elevateyourcreativeness
    @elevateyourcreativeness ปีที่แล้ว +2

    Can’t the clamp code be placed where you would normally choose font size

    • @websquadron
      @websquadron  ปีที่แล้ว +1

      Not tried that route. (Yet).

  • @hz130
    @hz130 ปีที่แล้ว

    How does that can work with global settings ?

    • @websquadron
      @websquadron  ปีที่แล้ว +4

      You would still use Global Fonts for the Font Family. But for Typography, leave it blank.

  • @sanjeevd6872
    @sanjeevd6872 ปีที่แล้ว

    Font clamp not working different devices. Exa samsung galaxy mobiles not working any solution ?

    • @websquadron
      @websquadron  ปีที่แล้ว

      Are you sure as I don’t have issues with other devices

  • @mahadewalid8813
    @mahadewalid8813 11 หลายเดือนก่อน

    Easier rem calculation based on multiples of 10, but still having 16px body font size.
    html {
    font-size: 62.5%
    }
    body {
    font-size: 16px;
    }

  • @muziekmindtwister
    @muziekmindtwister ปีที่แล้ว

    I did exactly like described but it does not change anything for me. What can be the issue ? Spend a whole day to figure this out :S

    • @websquadron
      @websquadron  ปีที่แล้ว

      Can you paste exactly the code you used below.

    • @muziekmindtwister
      @muziekmindtwister ปีที่แล้ว

      @@websquadron Wow , thanks for the fast reply. Certainly. I tried both but on the first part it's already doing nothing. (Previous to clamp generator)
      P {
      font-size: clamp(1rem, 2vw, 5rem);}

    • @websquadron
      @websquadron  ปีที่แล้ว

      @@muziekmindtwister No probs. Where are you adding this? To the custom css of the website or to a field? Also have you made sure that there are no preset sizes in the global fonts or the typography.

    • @muziekmindtwister
      @muziekmindtwister ปีที่แล้ว

      @@websquadron Yes, i did had a global font at first, but for this instance i deleted it to be sure and reinserted the text. The text is next to a an image within an inner section in case that matters. (i tried it on a costum css first)

    • @muziekmindtwister
      @muziekmindtwister ปีที่แล้ว

      I just tried it without the inner section as well but getting the same result, so i am guessing that shouldn't be it.