Country flags by listing on Search results page and Archives

This topic contains 7 replies, has 2 voices, and was last updated by  Alex Rollin 4 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #518498

    Manfred Van Ursel
    Expired Member
    Post count: 295

    Hi,

    We learned we can add country flags on the Location Description field.

    https://wpgeodirectory.com/support/topic/listing-archives-small-country-flag/

    However we have two questions:

    – how do we make it show on the Search Results and Archives?
    – where we could pull the flag icons set? Do the theme/plugin have some sets we can use to avoid loading a new one?

    Thanks,

    #518508

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    you can use the location description widget to show the location description field content. To use the location image requires customization, and you can find examples in the supreme theme.

    We do not include flag sets, so, you will have to look around for that.

    #518513

    Manfred Van Ursel
    Expired Member
    Post count: 295

    Thanks.

    how could we add the Location (as a hyperlink) here? Could we also include the flag?

    Please see the screenshot.

    #518530

    Manfred Van Ursel
    Expired Member
    Post count: 295

    I went to the Archive Item Page to edit it. Then I added a location shortcode below the H2 title, and a location description shortcode, like so:

    [gd_output_location location=”mapbubble”]
    [gd_location_description]

    The address will show, but it is not hyperlinked to a Location archive (we would like this).
    The location description doesn’t show, however.

    Is this because we have to edit the “mapbubble” somewhere?
    Where exactly?

    Thanks,

    #518539

    Manfred Van Ursel
    Expired Member
    Post count: 295

    I added this and the country is showing fine, but it is still not hyperlinked:

    [gd_post_address show=”icon-label-value” address_template=”%%country%%”]

    How to hyperlink it?

    Regarding the country/location description (where we would like to add a Flag), it is still not appearing there, although we have written some test text on the location data (GD > Settings > Locations > Countries > Russia > (filled in all fields).

    #518544

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    gd_location_description is usually used on the CPT + Location archive or the location page to display the location.

    There is not a way to link the location page related to the listing, and will take that up as a suggestion.

    You might consider a badge. You can place %%Country%% there, to make a single badge display multiple countries, or make a badge for each country.

    #518555

    Manfred Van Ursel
    Expired Member
    Post count: 295

    Thanks Alex, but can the badge get a hyperlink on it?

    Can it have a small picture on it?

    Where could I go to see an example of a badge shortcode?

    #518568

    Alex Rollin
    Moderator
    Post count: 27815

    You can use HTML in badges, including links.

    Here are some examples: https://wpgeodirectory.com/docs-v2/design/gd-badge/

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount