Listing Details Format

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

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

Open Support Ticket
  • Author
    Posts
  • #222864

    stever
    Expired Member
    Post count: 26

    Hello,

    I had previously (2 years ago) modified the “listing detail” page to where I’d move the Listing Address from the sidebar to directly beneath the Listing Title, as well as the website link and other relevant business information. I cannot seem to remember how I made these modifications so I turned to the support form.

    I’ve found a few posts referencing https://wpgeodirectory.com/docs/customizing-geodirectory-templates/ but this page isn’t much help to me.

    Can someone advise on which files would need to be modified to update a individual Listing’s Detail page? I believe I need to modify ‘listing-detail.php’ but I don’t see any lines in this file that relate to the business’s details, i.e. phone number, address, etc.

    I’ve attached a screen shot of the information I’d like to move, outlined in red, pointing to where I’d like to move it to.

    #222984

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    that is a child theme that already modifies the detail page and everything is done via functions.php

    You can check that file as everything is very well documented.

    Creating custom template goes beyond support.

    Thanks

    #222989

    stever
    Expired Member
    Post count: 26

    I checked functions.php for both the child and parent themes and there is nothing pertaining to this data. Can you confirm?

    I understand a custom theme is beyond support, if you can point me in the right direction I’ll be good 🙂

    #223802

    Giri
    Expired Member
    Post count: 3155

    I have no idea why you want to ruin your site design by moving there.

    But it makes you happy, here is how you should do it.

    File: /wp-content/themes/supreme-directory/functions.php

    Add the following code at the end.

    
    
    
    function sd_custom_geodir_detail_page_sidebar_content($array) {
        if(($key = array_search('geodir_detail_page_more_info', $array)) !== false) {
            unset($array[$key]);
        }
        return $array;
    }
    add_filter('geodir_detail_page_sidebar_content', 'sd_custom_geodir_detail_page_sidebar_content');

    File: /wp-content/themes/supreme-directory/inc/geodirectory-compatibility.php

    Around line no: 880

    Replace this line

    
    
    
    echo '<div class="sd-detail-cat-links"><ul>';

    with

    
    
    geodir_detail_page_more_info();
    echo '<div class="sd-detail-cat-links"><ul>';
    

    Warning: You will lose your changes if you update the theme.

    Thanks

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

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

Open Support Ticket