Adding pop-up when button is clicked.

  • Unknown's avatar

    I am trying to add a button to my site that says ‘Learn More’. When the button is clicked, I want a pop-up to show that includes more information. Is there a way to do this without installing a plug-in?

    WP.com: Yes
    Jetpack: Yes
    Correct account: Yes

    The blog I need help with is: (visible only to moderators and staff)

  • Hey there,

    This functionality is not supported by WordPress without a plugin. One similar option that might work is the Details Block which expands out to provide additional information:

    WP
    Blocks (The Full List) » Details Block
    2 min read
    The Details block is a block that allows you to include content hidden under a parent block with a text summary. This works like an accordion, with the text summary expanding to show nested content. Click here for an example of the Details block. This is hidden content. Add the Details Block To add the Details block, click on the + Block Inserter icon and search for Details block. Cli

    If you do wish to look at third-party plugins, it looks like there are several that can support this kind of functionality: https://wordpress.org/plugins/search/pop+up/

    Hope this helps!

  • The topic ‘Adding pop-up when button is clicked.’ is closed to new replies.