Listing Detail Page Tab
This topic contains 8 replies, has 4 voices, and was last updated by Alex Rollin 7 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: add tab, Company info, Listing Detail
-
AuthorPosts
-
July 5, 2018 at 9:29 am #437222
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
NeilJuly 5, 2018 at 10:12 am #437223Hi Neil,
Thanks for your post. Could you tell us what are you trying to display on the new tab?
Thanks!
July 5, 2018 at 12:12 pm #437233Hi 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
NeilJuly 5, 2018 at 3:52 pm #437269There 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
July 9, 2018 at 11:52 am #437545Hi 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
NeilJuly 9, 2018 at 1:22 pm #437560Hello,
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.
July 9, 2018 at 1:55 pm #437566This requires some more code customization.
Kiran
July 9, 2018 at 3:17 pm #437591Hi Kiran
Can you point me towards the correct template so that I can try and change it
Best Regards
NeilJuly 9, 2018 at 3:35 pm #437592Certainly, that would be the detail page template:
https://wpgeodirectory.com/docs/customizing-geodirectory-templates/ -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket