Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Change colour 404 page button - dawn theme

Solved

Change colour 404 page button - dawn theme

Lilboris
Excursionist
34 0 8

 Hello!

I would like to change the colour of the 404 button on www.hundben.se

Anyone knows how? 🙂 

Thanks!

Accepted Solutions (2)

Anshul_arora
Navigator
453 128 100

This is an accepted solution.

Hello @Lilboris ,

I understand you are looking to change the button color of your 404 page https://hundben.se/404

You can change the button color with the CSS code.

Please add the below mentioned code at the bottom of the theme.liquid file before </body> tag and save.

<style>

a.button {
background: green !important;
}

</style>


[Please feel free to change the background color of the button as per your requirement.]

Output will be like this -: https://prnt.sc/l-WghQZa4sZx

Anshul_arora_0-1715777317061.png

 

I hope the code helps you.

Please share if you have any queries.

Thank you.

Please remember to like and accept the solution to help other store owners.

For Shopify Design & Development | Custom Coding -Visit Here

View solution in original post

Made4uo-Ribe
Shopify Partner
9039 2160 2664

This is an accepted solution.

Nope, you add it in the wrong way. please take out the code first and paste it on the very last } closing bracket on the base.css. 

the last closing bracket must be only one. 

Made4uoRibe_0-1715779887768.png

you have 4 on here. You dont need to add anything just copy and paste. Dont delete also, just control z to go back. 

 

 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 11 (11)

ZestardTech
Shopify Partner
5902 1066 1412

Hello There,

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:

 

.button, .shopify-challenge__button, .customer button {
background: rgb(91 126 10);
}

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

Anshul_arora
Navigator
453 128 100

This is an accepted solution.

Hello @Lilboris ,

I understand you are looking to change the button color of your 404 page https://hundben.se/404

You can change the button color with the CSS code.

Please add the below mentioned code at the bottom of the theme.liquid file before </body> tag and save.

<style>

a.button {
background: green !important;
}

</style>


[Please feel free to change the background color of the button as per your requirement.]

Output will be like this -: https://prnt.sc/l-WghQZa4sZx

Anshul_arora_0-1715777317061.png

 

I hope the code helps you.

Please share if you have any queries.

Thank you.

Please remember to like and accept the solution to help other store owners.

For Shopify Design & Development | Custom Coding -Visit Here
Lilboris
Excursionist
34 0 8

Hello and thanks alot for a fast response!

I did add the code, but seems like there is a blue border: 

Lilboris_0-1715777551781.png

 

ZestardTech
Shopify Partner
5902 1066 1412

Hello There,

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:

 

a.button:after {
box-shadow: none!important;
}

 

ZestardTech_0-1715777785511.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
Lilboris
Excursionist
34 0 8

Hey!

Added it aswell but border still there

Made4uo-Ribe
Shopify Partner
9039 2160 2664

Hi @Lilboris 

Would you mind to share the link of 404 pages? That button you like to change color right? 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
Lilboris
Excursionist
34 0 8

Absolutely! I changed the colour of the button, but border still blue 😄 

https://hundben.se/404

Made4uo-Ribe
Shopify Partner
9039 2160 2664

thanks for the info,

Do you like to add border with it or just take out the border blue? 

To take out border color. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.template-404 .button {
  --border-opacity: unset !important;  
}

 

And save. 

Result:

Made4uoRibe_0-1715778861575.png

 

 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
Lilboris
Excursionist
34 0 8

Tried it, still not working.. Could it collide with the code from before that changed the colour to green?

Lilboris_0-1715779009941.png

 

Made4uo-Ribe
Shopify Partner
9039 2160 2664

This is an accepted solution.

Nope, you add it in the wrong way. please take out the code first and paste it on the very last } closing bracket on the base.css. 

the last closing bracket must be only one. 

Made4uoRibe_0-1715779887768.png

you have 4 on here. You dont need to add anything just copy and paste. Dont delete also, just control z to go back. 

 

 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
Made4uo-Ribe
Shopify Partner
9039 2160 2664

if your not confident to add code in the base.css go to the Customize theme > Click the 404 pages. And click the tepmplate on the left side. Then there will be some visible Custom Css on the right.

Made4uoRibe_2-1715780255978.png

Then paste the code. 

Made4uoRibe_1-1715780182868.png

And Save.

 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.