This topic has 7 replies, 2 voices, and was last updated 11 years by US.

  • Author
  • #5016
     US
    Participant

    What is the method for inserting reveal modals into the content?

    #5051
     SQadmin
    Keymaster

    Hi,
    Sweetdate is built on Zurb Foundation Framework. See this page for modals: http://foundation.zurb.com/old-docs/f3/reveal.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #5076
     US
    Participant

    Followed this method using the html class approach and the modal would not render… can you provide proof of concept here on how to place a modal into a “post” please

    #5091
     SQadmin
    Keymaster

    As I said, you have there all you need, just copy/paste operation. Here it is just in case..

    COPY CODE
    
    <div id="myModal2" class="reveal-modal">
      <h2>Awesome. I have it.</h2>
      <p class="lead">Your couch.  It is mine.</p>
      <p>Im a cool paragraph that lives inside of an even cooler modal. Wins</p>
      <a class="close-reveal-modal">×</a>
    </div>
    
    
    <a href="#" class="button" data-reveal-id="myModal2">Click Me For A Modal</a>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #5103
     US
    Participant

    Thank you, yes this indeed does fire off a modal. However it throws it very down on the page.

    FYI: I placed this snippet inside a post: here’s the tester:
    http://cyco.io/hello-world/

    This is especially poor if on a small screen – it will actually go right off the page…

    Your insight is much appreciated on this – thx for your time so far : )

    #5159
     US
    Participant

    bump

    #5181
     SQadmin
    Keymaster

    Then you should add the modal (not the link to it) in footer.php, before the wp_footer line

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #5242
     US
    Participant

    Thank you again sir

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?