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?
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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?
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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>
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
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>
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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?
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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>
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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>
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024