Stacks / Blocks in Modals

Permalink Browser Info Environment
Hey,

I just purchased your theme and I'm now playing around configuring it.

One thing I would like to do is put another block (besides the login as you have it) into a modal, in this case - a Mailing List Signup block.

Is there any easy logic behind how this can be done? Would be great not having to mess around with different addons to achieve this.

Type: Discussion
Status: New
Cahueya
View Replies: View Best Answer
formigo replied on at Permalink Best Answer Reply
formigo
Hi there,

The modals in the blocks are created following the coding conventions herehttp://foundation.zurb.com/docs/components/reveal.html...

You could follow a similar approach changing the view of your block.

Thanks
Cahueya replied on at Permalink Reply
Cahueya
Thank you very much! Got it working quickly! Great theme, great work!
Cahueya replied on at Permalink Reply
Cahueya
One more thing to clarify:


The embedded block does not pick up the CSS of the theme, I've tried wrapping it in ff-wrapper as well as ff-main-wrap, but it won't show any difference.

This is just about form fields and buttons, is there any other class I need to div around the code to get it working? Thank you!
formigo replied on at Permalink Reply
formigo
Hi there,

It is hard to say here as you are using third party blocks and custom coding.

We can not support this type of thing I am afraid as I am sure you can appreciate.

I would just suggest looking at how other blocks in the package are coded and work; also check there is no specific CSS from your third party block overwriting it...

Thanks
Cahueya replied on at Permalink Reply
Cahueya
Hello :)

yeah sure, I understand that this is none of your concerns :)

Just to clarify for anyone else following this:

To get all the IDs and Tokens, I just added the block to the page itself, got the source code of the ready HTML and pasted it into a HTML block, wrapped in the "reveal" class. I got it stripped of all the original div classes that could interfere with CSS, but still no luck in getting the foundation css to work. I will go on with trying and will post if I find a solution.

Thanks for your work :)
Cahueya replied on at Permalink Reply
Cahueya
Ok, I just found it:

markup must be:

<div id="myModal" class="reveal-modal" data-reveal>
<a class="close-reveal-modal">×</a>
<div class="ff-wrapper"><div class="ff-main-wrap"> 
YOUR BLOCK HTML
</div>
</div>
</div>


It did not work before because I had the ff-wrappers outside of the reveal div.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.