Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Automatic popup when opening the page

Started by Andy 6 years ago · 2 replies · 1094 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 complanar, 2 weeks ago
2 250 4 days ago
Plugins · by Vladimir Novak, 1 month ago
3 594 1 month ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 417 2 months ago
Plugins · by Slebeig, 2 months ago
1 530 2 months ago
Plugins · by Rene, 3 months ago
2 731 3 months ago