Change Layout of Details Page

This topic contains 1 reply, has 2 voices, and was last updated by  Paolo 8 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #40456

    explorer
    Expired Member
    Post count: 172

    We’d like to move the business information that is currently by default in the sidebar on the Detail page and show that info on the right of photo gallery in the same main div for detail info. Do we need to hack the templates for that and if so, do you have any feedback that could make this easier?

    Thanks, B

    #40573

    Paolo
    Site Admin
    Post count: 31206

    Hi Allyson,

    yes that would require custom coding.

    You’ll have to start hiding them from the sidebar using options available in custom fields settings for each CPT.

    Than you will have to re add them with actions and filters (php code) in your theme’s functions.php file.

    To add new content below the slider, you can have a look at this topic: https://wpgeodirectory.com/support/topic/adding-a-button-to-listings/#post-35225
    instead of hello world you want to echo your default fields which are all present in the $post variable.

    echo $post->geodir_email;

    Will echo the enquiry form | send to friend

    echo $post->post_address;

    Will echo the address and so on.

    To see all geodir paramenter present in the $post variable you can use this:

    print_r($post);

    Once added your custom content you can move it next to the slider with css.

    You will also have to shrink the space dedicated to the slider.

    Hope this helps,

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

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

Open Support Ticket