Solved

Change colour 404 page button - dawn theme

Lilboris
Excursionist
21 0 5

 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
380 110 77

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
5991 1443 1782

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


View solution in original post

Replies 11 (11)

ZestardTech
Shopify Expert
5467 984 1309

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
380 110 77

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
21 0 5

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 Expert
5467 984 1309

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
21 0 5

Hey!

Added it aswell but border still there

Made4uo-Ribe
Shopify Partner
5991 1443 1782

Hi @Lilboris 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


Lilboris
Excursionist
21 0 5

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

https://hundben.se/404

Made4uo-Ribe
Shopify Partner
5991 1443 1782

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


Lilboris
Excursionist
21 0 5

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
5991 1443 1782

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


Made4uo-Ribe
Shopify Partner
5991 1443 1782

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com