This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

African Flag Widget


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


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


Installation is just like installing most other plugins. [Check out the codex] ( 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.


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.


Translate “African Flag Widget” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Corrected description


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


  • Inline CSS tweaks


  • Fixes to bottom margin


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


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


  • Initial Release