How to change the color and size of a 'go back' button on mobile?

Hello,

I added a go back button on the product page with that code : Retour à la collection {%- style -%}}
}

The button appear blue on mobile and I want to change the size, can someone help me ?

URL store :https://prettyprettyplease.fr/

Password : Naomi

I use dawn theme

@NaomiNN - add class to this button using which we can set it as per your need, like below


Hello,

thank you for your reply.

I tried the code it’s still blue …

You can change the code to:

<button onclick="history.back()" class="custom-back-btn" style="
    color: black !important;
    border-radius: 5%;
    border: 1px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    padding: 0.2em;
    margin: 0.5em;
background-color: #FEEAF0;
"><i class="fa fa-angle-left" aria-hidden="true"></i> Retour à la collection  </button>

=> Result:

1 Like

Thank you so much it’s working

Is it is possible to have a contour for the button like the add to favorite button and move the button more to the left ?