Showing email address on the full detail page

This topic contains 2 replies, has 3 voices, and was last updated by  Simone 9 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #21697

    ed@dupecreative.com
    Free User
    Post count: 5

    Hello,

    Is there a way to add the email address of the “place” on the full detail page – I currently have a phone number, address and “send enquiry” in the sidebar – but I’d ideally like the email address in here.

    I found the code “function geodir_detail_page_more_info()” inside geodirectory_hook_actions.php but not sure how to add the email to the $content_html or how to place it in between the address and “send enquiry” link.

    Thanks,
    Garry.

    #21703

    Guust
    Moderator
    Post count: 29970

    Simplest would be to set the email custom field to inactive, and to create a new text custom field.
    But I also called the developers to have a look at your question.

    #21710

    Simone
    Expired Member
    Post count: 3515

    You can edit the custom_field_functions.php in /plugins/geodirectory/geodirectory_functions
    and adding this

    echo "<i class="fa fa-envelope"> ".$post->$type['htmlvar_name']."</i>";

    after this

    case 'email':

    downside: you will have to do that every time there is a GD update

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

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

Open Support Ticket