WordPress Customization

WordPress modal popup without plugins

The first step to creating a pop-up in WordPress without plugins is to create the pop-up content using Gutenberg blocks. Save it as a reusable block and get its ID. This ID should now be inserted into the code below and this code should now be pasted into the functions.php file.