Skip to content
This plugin makes it easy to distinguish between your local development site, and your live site. I created this because I often use a local duplicate of my live site, for development, with the same DB, and the same URL.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
admin
includes Intitial commit of all plugin files. Apr 12, 2019
languages Intitial commit of all plugin files. Apr 12, 2019
public
LICENSE.txt Intitial commit of all plugin files. Apr 12, 2019
README.md
README.txt
index.php
uninstall.php Intitial commit of all plugin files. Apr 12, 2019
wp-dev-flag.php

README.md

WP Dev Flag

Link to WordPress.org Repo: https://wordpress.org/plugins/wp-dev-flag/

banner-1544x500

Shows a floating badge on the front end, to visually distinguish your development site from production.

Description

This plugin makes it easy to distinguish between your local development site, and your live site. I created this because I often use a local duplicate of my live site, for development, with the same DB, and the same URL.

I use a hosts switcher for example Gasmask to switch between Local & Live versions of the same website, and needed a quick & easy way of identifying them. This plugin acheives that in the simplest way possible.

There are settings for colour, positioning and the text displayed on the badge.

Installation

From your WordPress dashboard

  1. Visit 'Plugins > Add New'
  2. Search for 'WP Dev Flag'
  3. Activate 'WP Dev Flag' from your Plugins page.
  4. Visit 'WP Dev Flag Options' in the 'Plugins' submenu to access the settings.

From WordPress.org

  1. Download 'WP Dev Flag'.
  2. Upload the 'wp-dev-flag' directory to your '/wp-content/plugins/' directory, using your favorite method (ftp, sftp, scp, etc...)
  3. Activate 'WP Dev Flag' from your Plugins page.
  4. Visit 'WP Dev Flag Options' in the 'Plugins' submenu to access the settings.

Frequently Asked Questions

Can I create my own CSS for the badge?

Currently, you can customise the colour, text and position of the badge. The ability to add a custom class is coming in the next release.

I will also explore additonal options such as custom fonts & href functionality.

Will the badge display on my live site if I duplicate the entire database as is?

No, it detects the current server environment and if it doesn't match the environment that was set originally, the plugin will not display the badge. You can simply click update to set the new environment if required.

Screenshots

This is what the default badge looks like.

screenshot-1

This is the Trigger Options tab.

screenshot-2

This is the Display Options tab.

screenshot-3

Changelog

1.0.0

  • First Version.

Upgrade Notice

1.0.0

This is the first version.

You can’t perform that action at this time.