Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shopify and Reveal #95

Open
holliej0 opened this issue Mar 12, 2014 · 4 comments
Open

Shopify and Reveal #95

holliej0 opened this issue Mar 12, 2014 · 4 comments

Comments

@holliej0
Copy link

Hi, I am trying to use the pop-up on my Shopify homepage - there is a button at the bottom of the page that I want a popup to appear when you click on it. I added the following files (jquery.reveal.js, jquery.min.js, reveal.css) and added the following code to my theme.liquid file:

screen shot 2014-03-12 at 7 35 16 pm

And added this right before the :

screen shot 2014-03-12 at 7 34 36 pm

Here is the link to the site where the button is (scroll to the bottom right where it says "click here to sign up to receive emails") - this is where I want a popup to happen when you click that button:
http://quatrine-custom-furniture.myshopify.com

Any help would be greatly appreciated!
Thank you,
Hollie

@holliej0
Copy link
Author

I also added this code to the top of the theme.liquid file:
screen shot 2014-03-12 at 7 38 57 pm

@holliej0
Copy link
Author

I almost got it to work, I put the following right before the tag, but now the popup is appearing on pageload as well (I just want it to popup when you click the assigned button):
{{ 'reveal.css' | asset_url | stylesheet_tag }}

{{ 'jquery.min.js' | asset_url | script_tag }}
{{ 'jquery.reveal.js' | asset_url | script_tag }}

<script type="text/javascript"> jQuery(document).ready(function($){ $('#myModal').reveal({ animation: 'fade', //fade, fadeAndPop, none animationspeed: 300, //how fast animtions are closeonbackgroundclick: true, //if you click background will modal close? dismissmodalclass: 'close-reveal-modal' //the class of a button or element that will close an open modal }); }); </script>

@holliej0
Copy link
Author

nevermind, figured it out!

@ghost
Copy link

ghost commented Aug 28, 2014

Can you post the solution then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant