This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

African Flag Widget

Description

A Widget that can be included into sidebar to display flags depending on the category slug

Displays appropriate national flag for the african country based upon the ‘.jpg’ found in the child theme directory
using get_stylesheet_directory_uri()

Development Notes

Developed by iandstanley for a custom project, GPL’d and released to the world.

Feel free to fork

Screenshots

  • Sample screen shot of plugin in use showing national flag in installed sidebar widget.

Installation

Installation is just like installing most other plugins. [Check out the codex] (https://codex.wordpress.org/Managing_Plugins#Installing_Plugins) if you have any questions.

Create a ‘flags’ directory in your theme (or child theme if you are using a child theme) and upload a bunch of jpg files one per category slug named using the categoryslug.gif format

/flags contains a set of african flags ready to use that can be copied to your /flags for use

I have kept this flags directory separate so you can easily replace the flags. For example, if you want american state flags, /flags and upload your state flags to that location.

FAQ

Can I use different images?

Yes just add them to the flags subdirectory that you create in your theme or child theme directory

Can I use different image types?

Yes, but you will need to edit the source code to match your file types

Contributors & Developers

“African Flag Widget” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1

  • Corrected description

1.0

  • Issue with displaying on single post page now fixed (does not display … due to likelehood of multiple category posts).
  • Centred images in block

0.9

  • Inline CSS tweaks

0.8

  • Fixes to bottom margin

0.7

  • Converted gifs to jpgs
  • Ammended widget to use jpgs instead of gifs

0.6

  • Added banner-772×250.jpg in assets for wordpress widget site

0.5

  • Initial Release