Shopify themes, liquid, logos, and UX
Hi I was wondering can someone help me change this view all button position, I want it to be below collection header not bellow collection images.
this is what i want
this is how my website look like
I want to change that for both of my collections on homepage, my website is domisana.com
Thanks!
Solved! Go to the solution
This is an accepted solution.
Hello @Domisana ,
Edit theme.liquid search for </body>
Now just before to it add this code
<script>
document.addEventListener("DOMContentLoaded", function () {
// Select all '.collection' containers
const collections = document.querySelectorAll('.collection');
collections.forEach(collection => {
const viewAll = collection.querySelector('.collection__view-all');
const sliderComponent = collection.querySelector('slider-component');
// Rearrange: move 'viewAll' before 'sliderComponent' in each collection
if (viewAll && sliderComponent) {
collection.insertBefore(viewAll, sliderComponent);
}
});
});
</script>
Regards
Guleria
This is an accepted solution.
Hello @Domisana ,
Edit theme.liquid search for </body>
Now just before to it add this code
<script>
document.addEventListener("DOMContentLoaded", function () {
// Select all '.collection' containers
const collections = document.querySelectorAll('.collection');
collections.forEach(collection => {
const viewAll = collection.querySelector('.collection__view-all');
const sliderComponent = collection.querySelector('slider-component');
// Rearrange: move 'viewAll' before 'sliderComponent' in each collection
if (viewAll && sliderComponent) {
collection.insertBefore(viewAll, sliderComponent);
}
});
});
</script>
Regards
Guleria
Thank you very much, it works!
Hi Domisana,
Though Guleria's approach is very good and dynamic for every collection, if you want it for a single collection you can follow the recording below. Hope it will help you.
Hello @Domisana
Thank you for submitting your query to the Shopify community. I’d be happy to assist you. Could you please provide the store URL and password (if it’s password-protected) so I can review and get back to you with an update?
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