Clear all

wpForo 1.x.x How to add user location flag and have it show up under their picture when they are posting things.

4 Posts
3 Users
Posts: 1
Topic starter
New Member
Joined: 2 years ago

Please help me out!!!

Topic Tags
3 Replies
Posts: 1079
Noble Member
Joined: 3 years ago


you have to add the location to your used layout post.php
look here How do I ad Member Locations?

then you can add flags via css title attribute

css example for Germany

#wpforo #wpforo-wrap .wpfl-2 .wpforo-post .wpf-left .custom_field-2 a[title="Germany"]::before {
    background-image: url(/wp-content/uploads/foren-icons/germany_flag.png);
    background-repeat: no-repeat;
    display: inline;
    content: "";
    position: absolute;
    width: 24px;
    height: 15px;
    margin: 3px 0 0 -35px;
2 Replies
Joined: 2 years ago

Eminent Member
Posts: 23

@tutrix is that something that needs to be done for each flag you want to be able to add? So, if there are 50 countries you want flags to show up for, you have to add the code and image for each?

Joined: 3 years ago

Noble Member
Posts: 1079


yes, the css code has to be inserted for each flag