Update look

This topic contains 10 replies, has 4 voices, and was last updated by  Giri 8 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #236226

    Peter Jensen
    Expired Member
    Post count: 12

    Hi,

    Some minor questions related to my picture.

    http://derude.net/places/germany/berlin/guesthouse/sixmiles-guesthouse/

    How can I move the adress under the adress line and remove the ‘Region’, so it would look like this:

    — From —
    Adresse: An der Kolonnade 1
    Berlin
    Berlin
    10117
    Germany

    — after recoding —
    Adresse:
    An der Kolonnade 1
    10117
    Berlin
    Germany

    Take care and keep up the good work

    #236920

    Guust
    Moderator
    Post count: 29970

    Hi, you can use this filter: geodir_show_post_address

    There are plenty of examples in the forum
    https://wpgeodirectory.com/support/search/?bbp_search=geodir_show_post_address

    Let us know if that helped.

    #237168

    Peter Jensen
    Expired Member
    Post count: 12

    Same question about the same 😀 Wouldnt it be an idea to make a FAQ about it?

    Take care and thanks. I will get back if I dont find an solution, but I guess i will.

    #237567

    Guust
    Moderator
    Post count: 29970
    #237572

    Peter Jensen
    Expired Member
    Post count: 12

    Thanks 🙂 I grapped it from the link you gave me. The problem about being new is that you dont know the terms to search for and quite often things is already there.

    Take care and again thanks.

    #243822

    Chris Doe
    Expired Member
    Post count: 4

    Hi,
    i tried the faq to change the layout of addresses to europeann/german format.
    i get an error, so i dont figured it out, where to place the new code (add_filter)

    Parse error: syntax error, unexpected end of file in .../wp-content/themes/whoop_child/functions.php on line 22

    Should i delete some code, or where to place the code exactly?
    i couldnt figure out the problem.

    Maybe useful, to put the whole code of functions.php?

    thanks in advance you reply
    Chris

    #243883

    Guust
    Moderator
    Post count: 29970

    You will have to restore your functions.php file again from your backup, and then try again.
    We would need to see the whole code you added to check for errors.

    From https://wpgeodirectory.com/docs/changing-the-layout-of-addresses/

    Always back up your functions.php before making changes, in case you make a mistake!

    #243993

    Chris Doe
    Expired Member
    Post count: 4

    Thanks for your quick reply, it works fine now, please dont ask 🙂

    this changes only the adress layout in the sidebar, how can i change the adress on the top of the details page? i mean the adress on the Static Map?

    #245051

    Giri
    Expired Member
    Post count: 3155

    Chris, please post your ftp details. I have add a hook to make that address customization work in static map.

    Thanks

    #245491

    Chris Doe
    Expired Member
    Post count: 4
    This reply has been marked as private.
    #245844

    Giri
    Expired Member
    Post count: 3155

    Hello Chris, I have added the hook in your site’s whoop theme.

    Now you can use the following line just above the code mentioned in this page.
    https://wpgeodirectory.com/docs/changing-the-layout-of-addresses/

    I believe you added that already. Just add only the following line.

    
    
    
    add_filter('whoop_get_address_html_filter', 'geodir_change_address_order' , 100 , 2) ;
Viewing 11 posts - 1 through 11 (of 11 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