modifying HTML of address on category listing page

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

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #270734

    John
    Full Member
    Post count: 15

    I successfully modified the HTML of the address display on place detail pages, by using this function in the theme functions file:

    function custom_gd_address_output($html, $variables_array) {

    However, this doesn’t seem to affect the display of addresses on the category listing of places. How do we customize that?

    #271143

    Kor
    Moderator
    Post count: 16516

    Hi Sandi,

    Are you using the code from this thread? https://wpgeodirectory.com/support/topic/changing-address-layout/ . If you are, do you think you can share WP temp admin access to your site so we can take a better look? You can post the details here using the private reply option below.

    #271235

    John
    Full Member
    Post count: 15
    This reply has been marked as private.
    #271821

    Giri
    Expired Member
    Post count: 3155
    This reply has been marked as private.
    #271924

    John
    Full Member
    Post count: 15

    Perfect Giri! Thanks!

    Can you please tell us how (and where) you did it?

    #271973

    Giri
    Expired Member
    Post count: 3155

    I have replaces this line

    if (geodir_is_page('detail')) {

    with

    
    
    if (geodir_is_page('detail') || geodir_is_page('listing')) {
    

    in this code

    https://wpgeodirectory.com/support/topic/changing-address-layout/#post-231790

    Hope that helps

    #271977

    John
    Full Member
    Post count: 15

    face-palm

    Thanks giri!

    #271988

    Giri
    Expired Member
    Post count: 3155

    You are welcome 🙂

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