Listing Detail Page Tab

This topic contains 8 replies, has 4 voices, and was last updated by  Alex Rollin 6 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #437222

    Neil Hall
    Buyer
    Post count: 83

    Hi Guys

    I would like to add the Listing info section that normally display in the sidebar of the listing-detail page in to a Tab on the details page. I have managed to add a new tab from the instructions on https://wpgeodirectory.com/add-a-new-tab-in-the-listing-detail-page/ but how do I now add the Listing info so it displays?

    I would also like to display the Rating info and User Links section in the same way

    Any help would be greatly appreciated

    Best Regards
    Neil

    #437223

    Kor
    Moderator
    Post count: 16516

    Hi Neil,

    Thanks for your post. Could you tell us what are you trying to display on the new tab?

    Thanks!

    #437233

    Neil Hall
    Buyer
    Post count: 83

    Hi Kor

    What I would like to display in the tab is the geodir-details-sidebar-listing-info which lists the company information in the sidebar as in the picture companyinfo.jpg

    Then also the geodir-details-sidebar-user-links and the geodir-details-sidebar-rating. if that is also possible.

    Best Regards
    Neil

    #437269

    Alex Rollin
    Moderator
    Post count: 27815

    There is a built in tab for this purpose called the More Info tab.

    Inide Place settings – Custom fields – Show in what locations, for each field you want, then select “More info tab”

    The tab can be renamed, too. Read more about it here:

    https://wpgeodirectory.com/docs/gd-search/#custom

    Let us know if you have more questions about it

    #437545

    Neil Hall
    Buyer
    Post count: 83

    Hi Alex

    Many thanks for your help. That worked a treat. Well, after a little work changing all of the cpt’s. I also added the following css to Design > Scripts – Custom style css code that then allows me to Display the infomation in different ways depending if its viewed on a Desktop, or mobile device. Maybe this can help someone else.

    
    
    /*Hide registration box on GD login Page*/
    .registration_form_r {display:none}
    
    /*Hide More Info tab in desktop view detail listing*/
    #post_infoTab {display: none !important;}
    /*Mobile Styles */
    @media only screen and (max-width: 767px) {
    /*Hide More Info sidebar on mobile devices*/
    .geodir-company_info.geodir-details-sidebar-listing-info {display: none !important;}
    /*show More Info tab in desktop view detail listing*/
    #post_infoTab {display: block !important;}
    }
    
    /*Hide Map  tab in desktop view detail listing*/
    #post_mapTab {display: none !important;}
    /*Mobile Styles */
    @media only screen and (max-width: 767px) {
    /*Hide sidebar Map on mobile devices*/
    .widget.geodir-widget.widget.geodir-map-listing-page {display: none !important;}
    /*Hide user links on mobile devices*/
    .geodir-company_info.geodir-details-sidebar-user-links {display: none !important;}
    /*Hide sidebar rating on mobile devices*/
    div.geodir-company_info.geodir-details-sidebar-rating {display: none !important;}
    /*show Map tab in desktop view detail listing*/
    #post_mapTab {display: block !important;}
    }
    

    Just one more question.

    Is it possible to have the The ‘Add to favorites’ in the main body of the detail page instead on the sidebar?

    Best Regards
    Neil

    #437560

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    I think that is not possible in V1 without customizing the template.

    I will flag this for the developers in case they know of another way to do that.

    #437566

    Kiran
    Moderator
    Post count: 7069

    This requires some more code customization.

    Kiran

    #437591

    Neil Hall
    Buyer
    Post count: 83

    Hi Kiran

    Can you point me towards the correct template so that I can try and change it

    Best Regards
    Neil

    #437592

    Alex Rollin
    Moderator
    Post count: 27815

    Certainly, that would be the detail page template:
    https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

Viewing 9 posts - 1 through 9 (of 9 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