Custom button style- Image with text overlay

Solved

Custom button style- Image with text overlay

elotomo
Excursionist
36 0 14

Hello, 

 

I would like to modify the w button in image with text overlay on home page. 

 

1. I want to move the button to the center of the inscription "the daylight collection"

2. I would like to increase the font in the normal button as well as the hover button.

3. Is it possible to set a white border in the hover button? I only mean the button on the home page in image with text overlay. I have already set a transparent background as seen in the video, but unfortunately I cannot set the frame.

 

I would like it to be like the example photo below, but the corners should remain rectangular, not rounded.

 

My store: https://www.drollsport.com/

Password: Wixa

Theme: Symmetry 

IMG_0645.JPG

IMG_0644.JPG

  

 

Accepted Solutions (2)
BSS-TekLabs
Shopify Partner
2401 695 835

This is an accepted solution.

@media only screen and (min-width: 600px) {
.text-overlay__button.button-row__btn {
     font-size: 17px !important;
    margin-left: 200px !important;
}
}
.text-overlay__button.button-row__btn {
         border: 3px solid white !important;
}

can you try add this code again @elotomo 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Made4uo-Ribe
Shopify Partner
10211 2427 3078

This is an accepted solution.

Hi @elotomo 

Check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

@media only screen and (min-width: 1100px) {
    .text-overlay__button-row.button-row.lightish-spaced-row-above {
        width: 20em;
        display: flex;
        justify-content: center;
    }
}
@media only screen and (min-width: 767px) and (max-width: 1099px) { 
    .text-overlay__button-row.button-row.lightish-spaced-row-above {
        width: 15em;
        display: flex;
        justify-content: center;
    }
    a.text-overlay__button.button-row__btn.btn.btn--secondary, 
    a.text-overlay__button.button-row__btn.btn.btn--secondary:hover {
        font-size: 20px !important;
    }
}

.text-overlay__inner a.text-overlay__button.button-row__btn.btn.btn--secondary:hover {
    border: 1px solid white !important;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1722274001675.png

    desktop.

  • Made4uoRibe_1-1722274029864.png

    tablet

  • I didnt change the mobile screen. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 8 (8)

BSS-TekLabs
Shopify Partner
2401 695 835

- Here is the solution for you @elotomo 
- Please follow these steps:

step.png

- Then find the base.css or theme.css , main.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

@media only screen and (max-width: 600px) {
.text-overlay__button.button-row__btn {
     font-size: 17px !important;
    margin-left: 200px !important;
}
}
.text-overlay__button.button-row__btn:hover {
         border: 3px solid white !important;
}

- Here is the result you will achieve:

BSSTekLabs_0-1722265736272.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
elotomo
Excursionist
36 0 14

Hi @BSS-TekLabs 

 

I pasted your code into main.css and unfortunately nothing changed. I don't know if I did something wrong.

BSS-TekLabs
Shopify Partner
2401 695 835

This is an accepted solution.

@media only screen and (min-width: 600px) {
.text-overlay__button.button-row__btn {
     font-size: 17px !important;
    margin-left: 200px !important;
}
}
.text-overlay__button.button-row__btn {
         border: 3px solid white !important;
}

can you try add this code again @elotomo 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
elotomo
Excursionist
36 0 14

 

Now everything works, but the border in the hover button does not show.

BSS-TekLabs
Shopify Partner
2401 695 835

BSSTekLabs_0-1722270637518.png

Please find this code and delete the part I marked in red.

 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
elotomo
Excursionist
36 0 14

Thank you!

Made4uo-Ribe
Shopify Partner
10211 2427 3078

This is an accepted solution.

Hi @elotomo 

Check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

@media only screen and (min-width: 1100px) {
    .text-overlay__button-row.button-row.lightish-spaced-row-above {
        width: 20em;
        display: flex;
        justify-content: center;
    }
}
@media only screen and (min-width: 767px) and (max-width: 1099px) { 
    .text-overlay__button-row.button-row.lightish-spaced-row-above {
        width: 15em;
        display: flex;
        justify-content: center;
    }
    a.text-overlay__button.button-row__btn.btn.btn--secondary, 
    a.text-overlay__button.button-row__btn.btn.btn--secondary:hover {
        font-size: 20px !important;
    }
}

.text-overlay__inner a.text-overlay__button.button-row__btn.btn.btn--secondary:hover {
    border: 1px solid white !important;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1722274001675.png

    desktop.

  • Made4uoRibe_1-1722274029864.png

    tablet

  • I didnt change the mobile screen. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
elotomo
Excursionist
36 0 14

Thank you 🙂