Responsive and Adjustable Text and Heading Underline for Specific Words in Elementor - WordPress

Поделиться
HTML-код
  • Опубликовано: 13 дек 2024

Комментарии • 42

  • @Reialesa
    @Reialesa  Год назад +4

    Everything required to do this 👇
    The heading 👇
    Awesome underline effect that definitely deserves a like!
    The CSS 👇
    /* If you don't want to have an offset, delete text-underline-offset. Setting it to 0 will have a slightly different effect. */
    .underline {
    text-decoration: underline 0.25em #635bff;
    text-decoration-skip-ink: none;
    text-underline-offset: -0.15em;
    }
    ❗ NOTE: Browser incompatibility may mean this effect is not fully supported on certain browsers or on specific versions of browsers. You can use the following CSS to ensure maximum compatibility and it should work perfectly with Apple devices - the process is the same 👇
    /* If you don't want to have an offset, delete text-underline-offset. Setting it to 0 will have a slightly different effect. */
    .underline {
    text-decoration-line: underline;
    text-decoration-thickness: 0.25em;
    text-decoration-color: #635bff;
    text-decoration-skip-ink: none;
    text-underline-offset: -0.15em;
    }
    The heading with the style directly inside the span tag 👇
    Awesome underline effect that definitely deserves a like!
    An example of an underline in 2 colors 👇
    Awesome underline effect, worthy of a sub, in multiple colors.

  • @officialtanzilrabbi
    @officialtanzilrabbi 8 месяцев назад +1

    Cool. One thing that is When the heading appears I want the underline to have an animation like underline filling left to right. How can we do that?

  • @JasonOtto
    @JasonOtto 2 месяца назад

    Thank you, worked a charm - very much appreciated.

  • @brunoumoffia6098
    @brunoumoffia6098 11 месяцев назад

    Wow! Thanks. This was so helpful. I'm also happy the colour can be changed using the HEX format too. Just Awesome 👍

    • @Reialesa
      @Reialesa  11 месяцев назад

      Thank you for such an awesome comment, Bruno! I'm happy to hear that the video was helpful. 🙌💪

  • @ammarmalik-v6b
    @ammarmalik-v6b Год назад

    i love this guy support him
    he is got good content

    • @Reialesa
      @Reialesa  Год назад

      Thank you very much for such a supportive comment! 🙏🙌 I appreciate it a lot.

  • @TitanGFX01
    @TitanGFX01 Год назад

    Subscribed keep growing ❤

    • @Reialesa
      @Reialesa  Год назад

      I'll certainly do my best! Thank you very much, I appreciate your support. 🙌🙏

  • @iRentAlbania
    @iRentAlbania 7 месяцев назад

    Great video 👌 how to make the underline color change on hover?

  • @EEX97623
    @EEX97623 9 месяцев назад

    Ah! Another great tutorial, thanks. How to offset x and y for an angle of underline? Would it be eg: transform: rotate(20deg); inserted somewhere in the CSS?

  • @lethabomashike
    @lethabomashike 8 месяцев назад

    Thanks for the tutorial. How can you make the line animate from left to right?

  • @crisrammirify
    @crisrammirify Год назад

    Greetings from Chile, congratulations on your video, I have a question, can you help me? I need to do the same but underlining above, with the overline command, I tried but it doesn't work.
    Thank you!

    • @Reialesa
      @Reialesa  10 месяцев назад

      Hello! Of course, try this 👇
      .underline {
      text-decoration-line: overline;
      text-decoration-thickness: 0.5em;
      text-decoration-color: #635bff;
      }
      And if you want both the underline and the overline, try this 👇
      /* If you don't want to have an offset, delete text-underline-offset. Setting it to 0 will have a slightly different effect. */
      .underline {
      text-decoration-line: underline overline;
      text-decoration-thickness: 0.5em;
      text-decoration-color: #635bff;
      text-decoration-skip-ink: none;
      text-underline-offset: -0.15em;
      }
      Keep in mind, though, that the offset doesn't work with the overline. Let me know how it goes! 💪

  • @borisnieminen677
    @borisnieminen677 9 месяцев назад

    Excellent, thanks for posting. Does this work in text editor?

    • @Reialesa
      @Reialesa  7 месяцев назад +1

      Yes, it does! You just need to add it under 'Text' not under 'Visual'. Once you do that, anything that works with headings works with text editors as well. 👌

    • @borisnieminen677
      @borisnieminen677 7 месяцев назад

      @@Reialesa ok cool, thanks alot bro, I will give it a try, cheers

  • @leonsarkis4228
    @leonsarkis4228 Год назад

    Amazing video and trick!! Works perfectly fine on desktop but somehow when I load my site on my phone the effect is not there🤔 Any thoughts or experiences on this? Keep it up man. Well deserved Like and ne subscriber👍⭐

    • @Reialesa
      @Reialesa  Год назад

      Thank you very much! And I'm sorry to hear that you're having issues. In my experience, there are 2 things you can do that will very likely fix this and other layout issues, or issues with changes not showing up on the front-end of your website(s). The first thing you can try is going into your dashboard, going under ''Elementor'', going under ''Tools'' and pressing ''Regenerate Files & Data''.
      The second thing you should try is clearing out every cache your website might have. These are, usually but not always, the CDN (content delivery network) cache, the server (hosting) cache and any cache created by plugins. Keep in mind that your browser, in this case, the browser you're using on your phone, also has a cache that might prevent changes from showing even if you clear out all of the others. So, after you clear them out, if the changes are still not appearing on your phone, try using a private/incognito window to test it out.
      Thank you, again, for your support and for your kind words! 🙌🙏
      Let me know if this fixed your issues. 💪

    • @clementj_
      @clementj_ Год назад

      Try this :
      The heading 👇
      This text underline
      The CSS 👇
      .highlight {
      background: linear-gradient(180deg,transparent 80%, #f34739 20%);
      }

    • @Reialesa
      @Reialesa  10 месяцев назад

      Hey Leon. Just getting back to you that the cause just might be browser incompatibility. Try this:
      .underline {
      text-decoration-line: underline;
      text-decoration-color: #635bff;
      text-decoration-thickness: 0.25em;
      text-decoration-skip-ink: none;
      text-underline-offset: -0.15em;
      }
      Let me know how it goes. 💪

  • @nathaliebatrony8227
    @nathaliebatrony8227 10 месяцев назад

    The code is not working on mobile for me. Can you help me?

    • @Reialesa
      @Reialesa  10 месяцев назад

      Hello! I'm assuming you're using an iPhone? Meaning the browser is Safari? It's probably because some parts of the CSS aren't fully supported in all versions of the browser. Try this:
      /* If you don't want to have an offset, delete text-underline-offset. Setting it to 0 will have a slightly different effect. */
      .underline {
      text-decoration-line: underline;
      text-decoration-thickness: 0.25em;
      text-decoration-color: #635bff;
      text-decoration-skip-ink: none;
      text-underline-offset: -0.15em;
      }
      Let me know how it goes! 💪

    • @nathaliebatrony8227
      @nathaliebatrony8227 10 месяцев назад

      It's now showing on mobile! Thank you!🥳
      @@Reialesa

    • @Reialesa
      @Reialesa  10 месяцев назад

      Awesome! No problem, thank you for your support 😁🙌

  • @MarcusArevalo
    @MarcusArevalo 10 месяцев назад

    Can this be done in a Text Editor as well?

    • @MarcusArevalo
      @MarcusArevalo 10 месяцев назад

      Nvm, just tried it and it worked! Thanks for the video!

    • @Reialesa
      @Reialesa  7 месяцев назад

      Perfect, I'm glad you managed to get it working. And for anyone else reading - yes, it does work in the 'Text Editor' widget as well, you just need to add it under 'Text' not 'Visual'.
      Thank you for your support, I appreciate it! 🙌

  • @katerynafedosova8115
    @katerynafedosova8115 Год назад

    The code ints working for me. Maybe I am doing something wrong but its not working

    • @Reialesa
      @Reialesa  Год назад

      Hi! That's very likely a caching issue. What I recommend you try first is that you go into your dashboard, go under ''Elementor'', go under ''Tools'' and press ''Regenerate Files & Data''. Also, try to clear out every cache - the CDN (content delivery network) cache, the server (your hosting) cache and any cache created by any plugin. This most often fixes things. Let me know how it goes! 💪

    • @SavedaWebStrategies
      @SavedaWebStrategies 10 месяцев назад

      It's not working for me in Safari, but is in Chrome on a Mac. FYI

    • @Reialesa
      @Reialesa  10 месяцев назад

      Thank you for letting me know. Your comment and several others made me realize there's probably more going on than caching issues. After a good while of research, I found out the cause is very likely incompatibility with the Safari browser. Try this:
      /* If you don't want to have an offset, delete text-underline-offset. Setting it to 0 will have a slightly different effect. */
      .underline {
      text-decoration-line: underline;
      text-decoration-thickness: 0.25em;
      text-decoration-color: #635bff;
      text-decoration-skip-ink: none;
      text-underline-offset: -0.15em;
      }
      Let me know if it works! 💪😁

    • @anasofia7187
      @anasofia7187 9 месяцев назад

      That worked for me. Thank you so much! You really helped me. Continue the great work! 🙏🏼@@Reialesa

  • @faisalalibhattifaisalalibh1396

    Hi 🎉 iam very happy to see your contant is OMG😂
    Can you create video on elementor topic. / When we relode the page a popup animation comes .
    Make a video on soon

    • @Reialesa
      @Reialesa  Год назад +2

      Hello! I have a few other videos in the works, so I'm not sure I'll be able to create that one. Still, I can offer some advice! A good starting point to achieve that is by going into your ''Site Settings'' and then into ''Page Transitions''. There, you'll find ''Preloader''. That's where you can set up an animation that shows up when you reload a page. If you had anything more complex in mind, you could also create a pop-up and make sure it displays every time a page reloads. When working with pop-ups, you can put in any kind of content, including animations. Thank you for your support! 💪

    • @faisalalibhattifaisalalibh1396
      @faisalalibhattifaisalalibh1396 Год назад

      @@Reialesa thanks to respond me

  • @12345678912345677546
    @12345678912345677546 10 месяцев назад

    Hey Man, Mine is working on laptop but doesn't work on mobile version? While in incognito mode on with laptop it's working when i put on mobile wide... Can u help with this problem?

    • @Reialesa
      @Reialesa  10 месяцев назад

      Hi! I'm assuming you have an iPhone and the browser you're viewing it on is Safari? If so, it's probably because some parts of the original CSS aren't fully supported in all versions of the browser. Try this:
      /* If you don't want to have an offset, delete text-underline-offset. Setting it to 0 will have a slightly different effect. */
      .underline {
      text-decoration-line: underline;
      text-decoration-thickness: 0.25em;
      text-decoration-color: #635bff;
      text-decoration-skip-ink: none;
      text-underline-offset: -0.15em;
      }
      Let me know how it goes! 💪

    • @12345678912345677546
      @12345678912345677546 10 месяцев назад

      @@Reialesa Hei Man, That worked well! thank you so much!

    • @Reialesa
      @Reialesa  10 месяцев назад

      That's great to hear, I'm happy to help! Thank you for your support 🙏

    • @12345678912345677546
      @12345678912345677546 10 месяцев назад

      @@Reialesa Hi, can you help to make the text more internal. That is, the strikethrough would be a little over on each side and would not end exactly where the text begins and ends?

    • @Reialesa
      @Reialesa  10 месяцев назад

      Hey! That's quite a bit more complicated, but this article explains it better than I could over comments: sharkcoder.com/visual/underline
      Here are some other ways you can try: stackoverflow.com/questions/7294369/how-can-i-make-an-underline-some-pixels-longer-than-the-headline
      Many of these rely on using a border, which is a very common way of creating underlines. However, it does require quite a bit more customization. And it is more difficult to position properly.
      You could also try using a non-breaking space right within your text. That can work well if your text is structured properly (for example, if you just need to add the underline to a specific word that is in its own line). You just add it to your text directly, like this:
      Awesome underline effect that definitely deserves a like!
      You'll notice that right before and after the word underline, I added in '' ''. That's a non-breaking space and you can add in as many as you want. You can read more about it here: www.w3schools.com/html/html_entities.asp