Modal to display on homepage load

Hello,

We have a website https://shamanicproducts.com

There is a UK and EU version of the site residing on two subdomains.

I want to display a modal when a user lands on the site (on any page) asking the user to select which version of the site they want to view, the user can then click an image of the UK flag or the EU flag to be redirected to the appropriate site.

My plan is to write some logic to detect the users country code and then display the modal using a looper if required. (I’m fine with writing this part of the code)

I tried using the Convert Plus plugin to do this but the plugin does not seem to allow me to embed the images, it also does not seem to format the text the way I want it.

Is there an alternative way to build this in cornerstone? I can build the modal once and use it across multiple pages on the site?

Hey There,

Thanks for reaching out!

We have a modal element and off canvas element that you can use to achieve your desired layout. Please check our online documentation on how it works.

Hope that helps.

And how do I create this to use across every page? There used to be Global Blocks in a previous version but it seems to be gone?

I want to just set up this modal once and be able to add it to multiple pages?

Hey Stephen,

Please check this out:

You can now create a Component instead.

You can insert the newly created component in your header or footer and assign it sitewide so that it will display in all your site pages.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.