Skip to content

Domjon24/Dynamic-Modal-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project Overview

The Dynamic Modal Plugin is A wordpress plugin, mainly for eCommerce websites. It's A modal popup that changes theme and contents based on time zone. This can be added to any WordPress page via shortcode.

modal demo

How it Works

This modal was designed using this modal generator and this gradient background generator. I used javascript to grab the users system time and it outputs a pre-designed modal based on what their local time is.

How to Start

To begin, download this repo as a .zip, and do NOT extract. Then go to your wordpress admin dashboard, click add plugin, upload, and drag the .zip file to the uploader.

This plugin can go on any wordpress webpage, and only triggers once. It uses a shortcode. To add, click on "Add Block" (+) button in the editor, search for 'shortcode' and click to add. In the shortcode block, type in [modal] (Be sure to include brackets). This will not add anything to the page, it will just trigger the modal popup.

Morning Modal

modal-early-bird

Afternoon Modal

modal-afternoon

Night Modal

modal-night-owl

Languages & tools:

git PHP html5 Wordpress Local javascript WordPress


Errors & Updates

As of now, there are no server-side options for customizing the modal. Development for that is currently in progress and will release in V2

About

A modal popup that changes theme and contents based on time zone.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published