Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

I have two Domain in single store:

I have two Domain in single store:

Ahsan-ah-med
Shopify Partner
30 3 4

I Have two domain in my store and I setup two header in customizer then handle for user which domain visit for this code below then working fine but customizer is blank because "href " check url 


<script>
if(!window.location.href.includes("{{ section.settings.domain }}")){
document.getElementById('sid-{{ section.id }}').style.display = 'none';
}
</script>

Ahsan Ahmed
Shopify Developer | 2 Years of Experience
Shopify App Developer | 1 Year Experience
I'm Build Custom App for Client Requirements Using Shopify Functions, Shopify Checkout Ui Extensions, Remix App,
Transforming Websites into Shopify
 Converting Existing Websites (WooCommerce, Figma, Magento, etc.) to Shopify
️ Developing Custom Shopify Apps for Unique Client Needs
 Enhancing Shopify Functions with Checkout Extensions for Plus Users
Let's Build Your Dream Store Together!
Replies 0 (0)