Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Automatic popup when opening the page

Started by Andy 6 years ago · 2 replies · 1020 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 Mathieu Lecouturier, 6 days ago
3 131 3 days ago
Plugins · by Slebeig, 4 weeks ago
1 296 4 weeks ago
Plugins · by Rene, 2 months ago
2 455 2 months ago
Plugins · by Xavier, 2 months ago
2 373 2 months ago
Plugins · by Luka Prinčič, 7 years ago
3 1597 2 months ago