Skip to content
This repository was archived by the owner on Jul 19, 2018. It is now read-only.

Commit 0c64cf0

Browse files
author
fritzmg
committed
updated readme
1 parent ac66274 commit 0c64cf0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,12 @@ By default, the extension defines the type for all Magnific Popup instances as `
3838
<a href="page.html" data-lightbox="iframe group1">Page</a>
3939
```
4040

41-
- through the `data-mfp-type` parameter, e.g.
42-
43-
```html
44-
<a href="page.html" data-lightbox="" data-mfp-type="iframe">Page</a>
45-
```
46-
4741
- by using your own Magnific Popup initialisation
4842
- by setting the type globally through the options in your own `j_magnific_popup` template
4943

5044
## Additional Parameters
5145

52-
I have also added another parameter, which will alow you to inject a custom CSS class to the main wrapper of the overlay:
46+
To support some compatibility with the old lightbox parameters of Contao, you can also define the width and height of the iframe popup like so:
5347
```html
54-
<a href="page.html" data-lightbox="iframe" data-mfp-class="myClass">Page</a>
48+
<a href="page.html" data-lightbox="iframe 800 600">Page</a>
5549
```

0 commit comments

Comments
 (0)