Shopify themes, liquid, logos, and UX
Hi there,
I want to move the below back button above 'you may also like this'. Can someone help me with this?
Store theme:- Debut
Solved! Go to the solution
This is an accepted solution.
@ibarry3393,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. In your theme.liquid file, find the </body> (press CTRL + F or command + F on Mac)
3. paste this code right above the </body> tag:
<script>
function moveButton(){
try{
var $child = document.querySelector(`#backToCollection`);
var $parent = document.querySelector(`#shopify-section-product-recommendations`);
if (!$child || !$parent){
return;
}
var moveDOMElement = (parent,child) => parent.appendChild(child)
moveDOMElement($child, $parent);
}catch(err){}
}
moveButton();
</script>
Kind regards,
Diego
@ibarry3393- if the button is part of this section then it can be moved, also can you please provide me the preview link of the page? current link asking or login
This is an accepted solution.
@ibarry3393,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. In your theme.liquid file, find the </body> (press CTRL + F or command + F on Mac)
3. paste this code right above the </body> tag:
<script>
function moveButton(){
try{
var $child = document.querySelector(`#backToCollection`);
var $parent = document.querySelector(`#shopify-section-product-recommendations`);
if (!$child || !$parent){
return;
}
var moveDOMElement = (parent,child) => parent.appendChild(child)
moveDOMElement($child, $parent);
}catch(err){}
}
moveButton();
</script>
Kind regards,
Diego
Hii, @ibarry3393
Kindly share your store password so,
I can solve it perfectly.
Thank You.
Done thanks guys!
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024