Magento 2 Popup Modal Window

Magento 2 makes some things much easier that Magento 1, especially UI elements like tooltips and popups.

No need to add css/js files to your code base, as they are already part of Magento 2.

This makes adding UI elemets as simple as adding a few lines of code to a cms page or template. In this case, we are going to place a youtube popup in a content page.

There are two components of this popup.
The link that opens up the popup and the div that holds the coding for the video. Magento takes care of the jquery and css since it’s already built into Magento.

Click To View Youtube Popup Code

This entry was posted in Magento, Magento 2. Bookmark the permalink.