- This topic has 26 replies, 3 voices, and was last updated 2 years, 2 months ago by David.
-
AuthorPosts
-
June 26, 2019 at 8:39 am #942015LeoStaffCustomer Support
No problem 🙂
July 7, 2020 at 5:04 am #1355055NovHi Leo,
In your reply #938961, where do I replace it?
Otherwise, is there a way that I can avoid doing it manually (i.e. avoid <u> and use the default underline option) while styling with different color?Thanks
July 7, 2020 at 6:22 am #1355130DavidStaffCustomer SupportHi there,
do you mean this code:
u { text-decoration: none; box-shadow: inset 0 -7px 0 0 #bee6ec; }
If so it is CSS, and this article explains:
July 7, 2020 at 1:32 pm #1355737NovHi David
I am able to get the desired style. But I’m saying I need to edit the html and add <u> </u> to achieve that.
I want to achieve the style by just clicking the underline button in the text editor. Without the need to go into html.
P.s. Clicking the underline button in the editor creates html like <span style=text decortation:underline>
July 7, 2020 at 1:34 pm #1355744NovFurther to my reply above – I already put the css in, and it works. Its just it is related to the <u> class, which does not appear to be what the underline button in wordpress editor uses.
July 8, 2020 at 2:41 am #1356173DavidStaffCustomer SupportOk – so
<u>
is deprecated any how. Annoying that WP used a span without adding a class.
However you can try this:span[style*="underline"] { text-decoration: none !important; border-bottom: 4px solid #f00; }
This will target any span that has the underline value inline – remove that and replace it with a border style that you can change to suit.
February 12, 2022 at 7:51 am #2115759SebastiánHey! This is the code i’m using right now and works well:
strong { box-shadow:inset 0 -7px 0 0 #E22943; }
Is it possible to set degraded colours in the underline instead of a solid colour? I’ve currently change the branding of my website https://nichoseo.com/ and I would like to replicate the colours used in the logo but in the underline for all the blog posts links.
Let me know if it’s clear enough.
February 12, 2022 at 9:39 am #2115839DavidStaffCustomer SupportHi there,
you could try this:
strong { position: relative; } strong:before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%); }
And this site is great for generating the line-gradient property;
February 12, 2022 at 12:08 pm #2115974SebastiánI’m so happy to see that it worked. Thank you so much. Just in case, I want to do the same but with the buttons, but I’m using Elementor for them. By any chance do you know how to do it there?
February 12, 2022 at 1:15 pm #2116049DavidStaffCustomer SupportMight be best to check with Elementor, not sure if thats an option – all i can offer is some CSS to overwrite its colors:
.elementor-widget-button .elementor-button { background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%) !important; } /* Separate hover color */ .elementor-widget-button .elementor-button:hover { background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%) !important; }
February 12, 2022 at 2:39 pm #2116116SebastiánThanks. Will try it.
February 13, 2022 at 4:46 am #2116527DavidStaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.