Detail Page – Change Layout

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 7 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #418865

    Adam Cates
    Expired Member
    Post count: 2

    I’m using your plugin on a site designed in Divi. Everything is working great. No problems with shortcodes and plugin functionality.

    I am struggling with how to change the layout of the Detail page. I would like it to look more like the Supreme theme, detail page. I’ve read everything I can find on the forum over the past couple of days and still confused how to proceed.

    Should I edit a copy of the template for the Detail page in my child theme? Or can items be moved with hooks in the functions.php? Is a page template available for the Supreme theme Detail page that I could start with? Any guidance you can give me on how to do this would be great.

    Thank you

    #418900

    Alex Rollin
    Moderator
    Post count: 27815

    I will point you at two resource below, and you can feel free to ask your questions here and we can point you at hooks where they are available.

    First, here is a doc on how to customize templates for the plugin:

    https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

    Next, for Supreme, most of the code is found in inc/geodirectory-compatibility.php

    #419188

    Adam Cates
    Expired Member
    Post count: 2

    Thanks Alex,

    I was able to move most of the page elements around with the information you provided. I have the content (Profile & Reviews) and sidebar section looking much like the Supreme layout.

    I’m still having problems getting the featured parallax image to show at the top and the header information (Name, Location, Phone number, etc.) They only show in the sidebar details but not at the top of the page.

    I tried simply copying the code from the geodirectory-compatibility.php file into my functions.php, but that didn’t work. The code I copied started with this comment.

    /**
    * Output the header featured area image HTML.
    *
    * Add featured banner and listing details above wrapper.
    *
    * @since 1.0.0
    *
    *@param string $page The GeoDirectory page being called.
    */

    What do you suggest to get the information in the page header above the content?

    #419224

    Alex Rollin
    Moderator
    Post count: 27815

    About the image you can check this function:
    https://wpgeodirectory.com/codex/codex/geodirectory_functions/geodir_media_image_large_height/

    About the data, there are a lot of examples throughout the forum about how to display post data and custom fields after_title or within the tabs. Here is an example of how to add custom fields to the profile tab: https://wpgeodirectory.com/support/topic/custom-fields-in-profile-tab/

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
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount