Editing the Detail Details Section of Individual Listings

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

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

Open Support Ticket
  • Author
    Posts
  • #500468

    identity
    Lifetime Member
    Post count: 445

    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

    #500483

    Alex Rollin
    Moderator
    Post count: 27815

    Right, 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?

    #500486

    identity
    Lifetime Member
    Post count: 445

    Ok, 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

    #500493

    identity
    Lifetime Member
    Post count: 445

    Alex,

    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

    #500520

    Alex Rollin
    Moderator
    Post count: 27815

    Use 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.

    #501485

    identity
    Lifetime Member
    Post count: 445

    Thanks!

    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.php

    But 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

    #501523

    Alex Rollin
    Moderator
    Post count: 27815

    For 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.

    #502234

    Naveen Giri
    Moderator
    Post count: 1559

    you can use followig hook to chage address format.
    https://wpgeodirectory.com/docs-v2/themes/supreme/#customize-single-address

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