[country_flag]
This Geo Controller shortcode is intended to show the responsive SVG or HTML image flag from current visitors country.
Parameters
size – (accept: text) – The image size you need for the proper flag displaying. Example: 32px
type – (accept: integer 1 or 0, default: 0) – You can chose type of the image (This working only with the SVG images)
- 1 – square
- 0 – rectangle (standard)
country – (accept: country code) – If you need to display flag for the specific country, just place country code and you will get matched flag
id – ID of the HTML element
class – Classes of the HTML element
css – CSS for the HTML element
img– (no values) – This is single property with no values. If you place this property, shortcode return HTML <img> tag instead of SVG image.
exclude – (accept: comma separated text) – this parameter gives to shortcode new functionality. If you add this parameter with continent, country, region, city name or code, it will hide flag from that setup locations. If location is not matched the flag will be shown.
include – (accept: comma separated text) – this parameter gives to shortcode new functionality. If you add this parameter with continent, country, region, city name or code, it will show the flag from that setup locations. If location is not matched the flag will be hidden.
Return
Returns country flag like you see above.
Note: If you not see the flag above, check your PROXY or VPN connection.
Examples
For displaying flag with no property:
[cfgeo_flag]
Change flag size:
[cfgeo_flag size=16px]
[cfgeo_flag size=24px]
[cfgeo_flag size=32px]
[cfgeo_flag size=64px]
Show from the specific country:
[cfgeo_flag size=24px country="us"]
[cfgeo_flag size=24px country="de"]
[cfgeo_flag size=24px country="gb"]
[cfgeo_flag size=24px country="rs"]
The other possible options:
[cfgeo_flag id="my-image"] [cfgeo_flag id="my-image" class="img-round"] [cfgeo_flag id="my-image" class="img-round img-responsive" css="margin-top:10px; display:block;" img] [cfgeo_flag exclude="hu"] [cfgeo_flag include="at"]