Editing the Detail Details Section of Individual Listings
This topic contains 7 replies, has 3 voices, and was last updated by Naveen Giri 6 years, 9 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
July 30, 2019 at 10:27 pm #500468
May have missed it…
On the individual detail page, I see how the lower (middle) section of the page can be modified by editing the “GD Details” template and the GD Sidebar Widget.
However, I didn’t see what controls the “.sd-detail-details” section that sits below the title and featured image with the avatar, title, address, rating stars, social links, phone, etc.
Cheers
July 30, 2019 at 11:04 pm #500483Right, that is part of the php template and can’t be edited without a customization.
If you are looking to make some visual changes, you can recreate it yourself using GD design elements, just select a different template instead of the GeoDirectory Single.
Can we help with some custom CSS to hide an element in that section?
July 30, 2019 at 11:17 pm #500486Ok, good to know.
Thanks, at the moment, just trying to get my bearings….
Developed a site quite a few years ago running on Enfold but then it kind of just sat on the back burner. Flash forward and a lot has changed, so I’m both trying to refresh my memory as well as relearn, unlearn, and learn what has changed.
I think Enfold was heavy and overkill, so I’m trying to figure out where to go from there…. GDF, Starter + Supreme, etc.
Cheers
July 31, 2019 at 1:48 am #500493Alex,
Let me ask then, as this is already a child theme, what is preferred method of making any changes (like this or other) that must be done at the template file level while also maintaining stability through updates?
Cheers
July 31, 2019 at 5:30 am #500520Use code snippets and the customizer as opposed to editing the theme files.
https://wpgeodirectory.com/docs-v2/faq/customizing/#custom-code
Find a theme that has the sidebar/header/footer layout you want, then focus on creating the GD templates to meet your niche/needs.
August 5, 2019 at 11:02 pm #501485Thanks!
Here’s a specific example of some changes I’d like to make at the Detail page level…
1) As my site is very local, I’d like to modify the address in the top section of the Supreme Directory detail page to just list the city, rather than city, state, country.
I can edit this in:
/themes/supreme-directory/template-parts/header/header-single-top.phpBut of course risk being over-written.
Is there a way to template override this or some other method? I don’t want to simply “hide” via CSS (I’m an SEO with 15+ years experience, so “display: none;” is not a viable option to me).
2) I’d also like to relocate the “Add to Favorites” heart icon, perhaps just to the left of the listing title (h1 or inside the h1). Best way to do that?
Most of the other changes to that section I can do via CSS, but doesn’t seem to be any other way to modify that specific part of the Details page other than template level.
Cheers
August 6, 2019 at 6:37 am #501523For 1 and 2, that is correct, you would need to use the hooks and filter there in the PHP template, the recommended method, or make changes directly in the PHP template.
To take control of the details page without needed PHP you can switch to a different page template, instead of the GeoDirectory Single, and then you can create that area exactly as you want.
August 9, 2019 at 8:55 am #502234you can use followig hook to chage address format.
https://wpgeodirectory.com/docs-v2/themes/supreme/#customize-single-address -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket