Shopify themes, liquid, logos, and UX
Hello! So, i want to move the "view all" button to the right side of the title line.
It looks like this now, and I want it to look like the image below.
I appreciate any help. Thank you 🙂
Solved! Go to the solution
This is an accepted solution.
Hey @someone1921,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.collection:has(.collection__view-all) {
display: grid !important;
grid-template-columns: auto auto !important;
}
.collection:has(.collection__view-all) .collection__title {
grid-row: 1 !important;
grid-column: 1 !important;
width: 100% !important;
display: flex !important;
align-items: center !important;
margin-bottom: 0 !important;
}
.collection:has(.collection__view-all) slider-component {
grid-row: 2 !important;
grid-column: 1/3 !important;
width: 100% !important;
overflow:hidden !important;
}
.collection:has(.collection__view-all) .collection__view-all {
grid-row: 1 !important;
grid-column: 2 !important;
width: 100% !important;
text-align: right !important;
padding-right: 5% !important;
}
@media only screen and (min-width: 990px) {
.collection:has(.collection__view-all) .collection__title {
padding-left: 10% !important;
}
.collection:has(.collection__view-all) .collection__view-all {
padding-right: 10% !important;
}
}
@media only screen and (max-width: 989px) {
.collection:has(.collection__view-all) .collection__title * {
font-size: 1.5rem !important;
margin-bottom: 0 !important;
}
.collection:has(.collection__view-all) .collection__view-all a {
min-height: 40px !important;
margin-bottom: 10px !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
This is an accepted solution.
Hey @someone1921,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.collection:has(.collection__view-all) {
display: grid !important;
grid-template-columns: auto auto !important;
}
.collection:has(.collection__view-all) .collection__title {
grid-row: 1 !important;
grid-column: 1 !important;
width: 100% !important;
display: flex !important;
align-items: center !important;
margin-bottom: 0 !important;
}
.collection:has(.collection__view-all) slider-component {
grid-row: 2 !important;
grid-column: 1/3 !important;
width: 100% !important;
overflow:hidden !important;
}
.collection:has(.collection__view-all) .collection__view-all {
grid-row: 1 !important;
grid-column: 2 !important;
width: 100% !important;
text-align: right !important;
padding-right: 5% !important;
}
@media only screen and (min-width: 990px) {
.collection:has(.collection__view-all) .collection__title {
padding-left: 10% !important;
}
.collection:has(.collection__view-all) .collection__view-all {
padding-right: 10% !important;
}
}
@media only screen and (max-width: 989px) {
.collection:has(.collection__view-all) .collection__title * {
font-size: 1.5rem !important;
margin-bottom: 0 !important;
}
.collection:has(.collection__view-all) .collection__view-all a {
min-height: 40px !important;
margin-bottom: 10px !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
This worked perfectly! I really appreciate the work you've put into this. Have an amazing day! 🙂
Thanks a lot! It almost worked perfectly. I only don't understand why it's 1 line above the collection title. It's not perfectly aligned. I'm using theme "taste"
Ah got it, thanks.
This doesn't auto adjust to screen size for whatever reason. if you minimize the window it'll look wierd.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025