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
Developed by iandstanley for a custom project, GPL’d and released to the world.
Feel free to fork
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.
- 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
Interested in development?
- 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