Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

How to Create Modal Popup?

  • #9690
    Avatar photo[anonymous]

    How to Create Modal Popup in Publii?

    #9699
    Avatar photo[anonymous]

    Do you want a modal that is activated when clicked on, or a modal that’s activated after a certain time on a site?

    If it’s the former, check out the following tutorial: https://www.w3schools.com/howto/howto_css_modals.asp

    Add the HTML and script either in the source code of a WYSIWYG post (if it’s just for one post) or add it to a partial/page if it shows up on multiple pages. Add the CSS to the Custom CSS module in the GUI or main.css in your site files.

    #9718
    Avatar photo[anonymous]

    Thanks for the input. It helps me a lot.