Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I have a button, currently i can only make it scroll to the accordion section
I wish to achieve to open a specific tab once it is clicked
how can i achieve it in Pagefly?
Could you share the page with that button?
- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. ☕ Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi Dan,
thanks for the reply!
this is the page where you can see the black button and actually another text link
https://www.hinomi.co/pages/warranty-extension-policy
i wish once they are clicked they can also auto open the second form below which creates a better experience but i am unable to achieve myself as i dont know coding 😅
What tab do you want it open? Claim or Extend?
- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. ☕ Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi Dan,
it would be Extend form.
Please try to add this code to your theme.liquid file before </head> tag to check
<script>
$(".pf-75_.btn-site-primary").on('click', function (event) {
event.preventDefault();
if ( $('.pf-accordion-wrapper').hasClass( "pf-accordion-show" ) ) {
}else{
$( ".pf-95_.pf-anchor").trigger( "click");
}
});
</script>
- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. ☕ Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
HI Dan
i have added but it is not working @@
https://www.hinomi.co/pages/warranty-extension-policy
Please update that code to this version and check again
<script>
document.addEventListener('DOMContentLoaded', function () {
var button = document.querySelector('.pf-75_.btn-site-primary');
var accordionWrapper = document.querySelector('.pf-accordion-wrapper');
var anchor = document.querySelector('.pf-95_.pf-anchor');
button.addEventListener('click', function (event) {
event.preventDefault();
if (!accordionWrapper.classList.contains('pf-accordion-show')) {
anchor.click();
}
});
});
</script>
- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. ☕ Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
HI Dan,it is still not working 😅
i actually also tried to paste in the custom code in that page and also not working
Could I send collaborator request access to your store so I can help?
- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. ☕ Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Or you can try to update code to this
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script>
$(".pf-75_.btn-site-primary").on('click', function (event) {
event.preventDefault();
if ( $('.pf-accordion-wrapper').hasClass( "pf-accordion-show" ) ) {
}else{
$( ".pf-95_.pf-anchor").trigger( "click");
}
});
</script>
- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. ☕ Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi Dan,
for now i used a cheating method which making this form as active tab in the beginning since this page is about warranty extension haha
Hi Dan,
i cannot share the access with you haha i am not even the admin too and i dont think it will be allowed
hmmm i think it is fine if this is too tricky to achieve as my side is not so flexible 😞
Please try to update code to this and check again
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script>
$(".pf-75_.btn-site-primary").on('click', function (event) {
event.preventDefault();
if ( $('.pf-accordion-wrapper').hasClass( "pf-accordion-show" ) ) {
}else{
$( ".pf-95_.pf-anchor").trigger( "click");
}
});
</script>
- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. ☕ Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi @averynkh ,
This is Richard from PageFly - Shopify Page Builder App.
Can you give me shotscreen about problem?
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi Richard,
i have this page - https://www.hinomi.co/pages/warranty-extension-policy
on clicking these two links from the page
not only anchor link to the form in the bottom but also auto expand the second Extend warranty tab, is this possible to achieve?
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025