Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a client who is requesting a modal be presented to site visitors, offering an email signup form. Is there a way to automatically fire a modal without clicking on a link?
For an example of this functionality, see http://ChelseaGreen.com/
Thanks!
Comments
Comment #1
Dave ReidYou could have a link (hidden or visible) on the site that would go to the modal version of the page you wanted to load. And then in a small custom JS for the frontpage, use
$('a.homepage-modal').click();
Comment #2
brunodboThis worked for me: https://www.drupal.org/node/1744818#comment-7945921.