I added a third-party platform pop-up form code to the section of the Theme.Liquid file, but this is causing the pop-up form to appear on all pages which is quite annoying.
How do I ensure the code is only applied to the store’s Home Page?
I added a third-party platform pop-up form code to the section of the Theme.Liquid file, but this is causing the pop-up form to appear on all pages which is quite annoying.
How do I ensure the code is only applied to the store’s Home Page?
@Empyrean - shopify shares templates hence theme.liquid is shared by all pages for header and footer
we can use css to hide this popup on other pages and keep it activated on home page only
Thanks, Can you tell me what to insert to hide the popup on other pages?
@Empyrean - can you please share your page link?
@Empyrean - add this css to the very end of your theme.css file and check
.fd-modal{display: none; visibility: hidden;}
.template-index{display: block; visibility: visible;}
Seems to have done the trick! thanks a ton