Shopify themes, liquid, logos, and UX
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
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!
User | RANK |
---|---|
119 | |
97 | |
73 | |
72 | |
46 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022