Shopify themes, liquid, logos, and UX
Hello!
I would like to change the colour of the 404 button on www.hundben.se
Anyone knows how? 🙂
Thanks!
Solved! Go to the solution
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
I hope the code helps you.
Please share if you have any queries.
Thank you.
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.
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!
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);
}
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
I hope the code helps you.
Please share if you have any queries.
Thank you.
Hello and thanks alot for a fast response!
I did add the code, but seems like there is a blue border:
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;
}
Hey!
Added it aswell but border still there
Hi @Lilboris
Would you mind to share the link of 404 pages? That button you like to change color right?
Absolutely! I changed the colour of the button, but border still blue 😄
https://hundben.se/404
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:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Tried it, still not working.. Could it collide with the code from before that changed the colour to green?
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.
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 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.
Then paste the code.
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024