Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Automatic popup when opening the page

Started by Andy 6 years ago · 2 replies · 1138 views
6 years ago

Hello, I'm new here and I use GRAV CMS only recently. I have the following problem.
I want zu open an Infobox / Infomassge like this:
https://demos.crazedbytes.net/shortcode-modal

I can the code copy to my Grav-CMS and it works too, but I would like the night message / info box to appear automatically when the page is opened without a button click. Do any of you know how I have to adapt the code so that it is automatically executed when the page is called? I am grateful for every tip. best regards Andy

Here the orginal Code:

TXT

[modal name="example1"] 

Hello, World!

[/modal]

[modal-launch modal="example1"]Launch Modal[/modal-launch]
6 years ago

Hi,
via the plugin if option exists or simulating a click with jquery

6 years ago

Hi, I can't find any options for the "shortcode modal" plug-in except for the demos, that's my problem.
How could such a click with jquery look like?

Suggested topics

Topic Participants Replies Views Activity
Plugins · by renedebaaij, 1 day ago
0 32 1 day ago
Plugins · by complanar, 3 weeks ago
6 383 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 202 2 weeks ago
Plugins · by complanar, 1 month ago
2 478 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 755 2 months ago