Position of button underline ease in on hover - Dawn

Position of button underline ease in on hover - Dawn

Element1
Explorer
54 0 9

Hi! Is anyone able to help me with the positioning of the visible part of my banner button underline?

 

On my current live theme, it's positioned as it should be, with the line beginning directly under the button text. When I duplicate this section or duplicate the theme for a draft theme, it is no longer in the correct position, see the images below.

 

This is how it should be:

Screenshot 2025-03-06 131110.png

 

This is how it is when I duplicate it:

Screenshot 2025-03-06 135855.png

 

here is the URL to my theme: https://8zeh90dm6h5cr0e4-27884224571.shopifypreview.com

Replies 6 (6)

DaisyVo
Shopify Partner
4340 482 569

Hi @Element1 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

 

 

a.button.button--primary {
    justify-content: unset !important;
}

 

 

Result 

DaisyVo_0-1741340702183.png

 

Best,

DaisyVo

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Element1
Explorer
54 0 9

Hi! Unfortunately this didn't work

DaisyVo
Shopify Partner
4340 482 569

Hi @Element1  Can you share an image of where you add the code?

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Element1
Explorer
54 0 9

here is the screenshot

Screenshot 2025-03-10 154831.png

DaisyVo
Shopify Partner
4340 482 569

Hi @Element1  you must click "Save" to code work

DaisyVo_0-1741856076846.png

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Element1
Explorer
54 0 9

I already did that haha. I had removed the code since you asked for a screenshot three days after I told you it didn’t work. I just added it back to show you where I had placed it. That code simply doesn’t work, at least not in the base.css file. I’m not totally clueless about code, I know how to find the base.css file and save my changes 🤭