Where can I edit "details Info area"

This topic contains 13 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 1 month ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #535552

    Irina Davidov
    Expired Member
    Post count: 44

    Hi,
    where can I edit/change the “Details Info area”? I mean the “B” section from this post:
    https://wpgeodirectory.com/docs-v2/templates/details/
    I would like to change format of GD Post Address and make other changes.
    I can not find it neighter in widgets area nor somewhere else.

    #535554

    Kor
    Moderator
    Post count: 16516

    Hi Irina,

    Thanks for your post. You can refer to this section of the documentation for your reference. https://wpgeodirectory.com/docs-v2/themes/supreme/#customize-single

    #535596

    Irina Davidov
    Expired Member
    Post count: 44

    Thank you.
    I need this form: %%street%% %%zip%% %%city%%

    add_filter( ‘sd_details_output_address_shortcode’, ‘sd_details_output_address_shortcode_callback’);
    function sd_details_output_address_shortcode_callback( $address_shortcode ){
    // %%street%%, %%zip%%,%%city%%
    $address_shortcode = ‘[gd_post_address show=”icon-value” address_template=”%%street%%” alignment=”left”]’;
    return $address_shortcode;
    $address_shortcode = ‘[gd_post_address show=”icon-value” address_template=”%%zip%%” alignment=”left”]’;
    return $address_shortcode;
    }

    but how can I remove %%region%%,%%country%% ?

    #535597

    Irina Davidov
    Expired Member
    Post count: 44

    this works great for my german Address // %%street%% %%zip%% %%city%%

    add_filter( ‘sd_details_output_address_shortcode’, ‘sd_details_output_address_shortcode_callback’);
    function sd_details_output_address_shortcode_callback( $address_shortcode ){
    $address_shortcode = ‘[gd_post_address show=”icon-value” address_template=”%%street%% %%zip%% %%city%%” alignment=”left”]’;
    return $address_shortcode;
    }

    Thank you very much

    #535619

    Kor
    Moderator
    Post count: 16516

    Hi Irina Davidov

    Glad that you sorted it out yourself. Let us know if you need anything further.

    #535791

    Irina Davidov
    Expired Member
    Post count: 44

    How can I get the same adress format in the customs adress field?
    there is zip after the city,
    I need %%street%% %%zip%% %%city%%

    #535883

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    where do you want to show the address?

    Any time you use GD Post Address you can use a new template.

    You can add GD Post Address to the details page sidebar as a widget, or as a shortcoode place it into the GD Archive Item template:

    https://wpgeodirectory.com/docs-v2/templates/archive-item/

    #535945

    Irina Davidov
    Expired Member
    Post count: 44

    I already have the adress in the GD Sidebar (with widget) But the adress is in wrong order. City and then ZIP. I need it different.
    First ZIP then City. How can I change this order?

    #535958

    Kor
    Moderator
    Post count: 16516

    Hi Irina,

    Thanks for your reply. The PHP code that you’ve applied above should work as intended. Could you share your Website WP admin access here in private reply so that we could investigate this further for you?

    #536444

    Irina Davidov
    Expired Member
    Post count: 44
    This reply has been marked as private.
    #536629

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can adjust the GD post Address widget, at the top of the sidebar. %%street%% %%zip_brc%% %%city%% might be a better template choice

    You are using GD Single tabs in the sidebar. I would recommend not doing that, but, at least you can remove the Address from display in the tabs.

    Let us know

    #537037

    Irina Davidov
    Expired Member
    Post count: 44

    this is not exactly my plan /place but it works.
    Thank you very much!

    #537230

    Irina Davidov
    Expired Member
    Post count: 44

    Sorry but this does not work at all.
    When I deaktivate the Adress in the Tab -> all Adress fields desappered (1. from the top (info area) 2. bei Author 3. tab Adressfield.
    So I have only choice between adress on three places (one with wrong format) or no adress at all.
    How to fix it.

    #537339

    Alex Rollin
    Moderator
    Post count: 27815

    To customize the address you will need to use the shortcode or the widget. Widgets work in sidebars.

    On the tabs you can add a custom shortcode tab and use the GD Post Address there.

    https://wpgeodirectory.com/docs-v2/places/tabs/

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

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

Open Support Ticket