Customize your pages strictures in templates

This topic contains 12 replies, has 3 voices, and was last updated by  Paolo 8 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #63386

    goodmuyis
    Expired Member
    Post count: 18

    I have read the Guide here but its too straight forward for me to understand, and i have copied the templates i need to the geodirectory to my child-theme folder.

    I will like to Change the way GD display the listing-details:

    1 => I Want the HTML structure of the listing details to be in top-dowm form NOT in tab, change the TABS to straight down (Example as in image attached)

    2 => How feasible is it to remove the GD listing details from side-bar and add it to the middle content, below the [1] above (I want to use the both side-bar area for something else)

    I can work with PHP/HTML/CSS but am not buoyant to hire a developer now, kindly help me to help myself 🙂

    #63397

    goodmuyis
    Expired Member
    Post count: 18

    OK, While searching I was able to solve No 1, How to Removing Tabs

    #63475

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    here you should have enough pointers for question n2 too:
    https://wpgeodirectory.com/support/topic/change-layout-of-details-page/

    Let us know how you went,

    Thanks

    #63806

    goodmuyis
    Expired Member
    Post count: 18

    The guide in this link is close to what am looking in No 1 above but I have figure out how that its related to the N0 -1 without coding.

    The Social Like section, Share Button, and User Links section (Edit post, Favorite etc.) were above the Listing Info section which can be disable from Design > Details Tab.

    Also instead of coding as suggested in the link above I can edit the Post field From Place Setting > Custom Fields, then set Show in sidebar to NO, and Set Show as a Tab on detail page? to Yes (See result here)

    But what I want here is to reposition the Social Like, Share Button, and User Links to the main content Just as a did for the Sidebar Listing Details

    #63827

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    that is not possible without custom coding…

    Thank you

    #63859

    goodmuyis
    Expired Member
    Post count: 18

    Yes that is through, Custom coding is required, I will be happy if I can get help with that, I have used some code to solve my NO 1. I think the below Filters is what should be looking for, I just need help on proper use of these filters. The claim listing; i need to move that also

    geodir_dashboard_link_my_listing

    geodir_dashboard_link_add_listing

    geodir_dashboard_link_favorite_listing

    geodir_edit_post_link

    using custom code I have made some progress in modification see demo here

    #64139

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you need to look into geodirectory_hooks_actions.php and precisely this function:

    geodir_detail_page_sidebar_content_sorting()

    There you will find the array of functions that create that part of the sidebar:

    
    
    array( 	'geodir_social_sharing_buttons',
    							'geodir_share_this_button',
    							'geodir_detail_page_google_analytics',
    							'geodir_edit_post_link',
    							'geodir_detail_page_review_rating',
    							'geodir_detail_page_more_info'
    						) // end of array 

    You can remove from the sidebar everything from GeoDirectory >> Design >> Detail.

    Than add whatever you need back with actions like these:

    
    
    
    add_action('geodir_details_main_content', 'geodir_social_sharing_buttons', 25);
    add_action('geodir_details_main_content', 'geodir_edit_post_link', 26);

    Which will add social sharing buttons and edit post links between the title and slider. Then you’ll only have to work with css to make it look as you wish.

    Thanks

    #69119

    George Nicolae
    Expired Member
    Post count: 123

    I’m not too familiar with actions …etc. This helped me a lot as I wanted to achieve the same thing. But is there any way I can wrap those in UL and LI?

    #69124

    George Nicolae
    Expired Member
    Post count: 123

    Also I found a problem. After I add those in the desired position as you explained to Abubakar, when I stop them from showing in the sidebar, they stop showing in the custom position too.

    #69256

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    that is correct, if you disable it from design >> detail option it will disable it completely.

    You should use a function like this:

    
    
    function my_change_sidebar_content_order() {
        return array();
    }
    add_filter('geodir_detail_page_sidebar_content', 'my_change_sidebar_content_order');
    

    This will remove everything from teh array and nothing will be output in the sidebar.

    TO add extra html and styles you need to rebuild the original functions.

    So if you want to change the html of geodir_social_sharing_buttons, you will need to search for function geodir_social_sharing_buttons() in geodirectory_hooks_actions.php. Copy and paste it in your theme functions.php, rename it something like function my_geodir_social_sharing_buttons(), modify it as you wish and use your new function in the add action call.

    
    
    add_action('geodir_details_main_content', 'my_geodir_social_sharing_buttons', 25);
    

    Let us know if this helped.

    Thanks

    #69471

    George Nicolae
    Expired Member
    Post count: 123

    I had a problem and my hosting company although, a decent one doesn’t have 24h support.

    Tested now and it removes all the isting info sidebar not only the parets I want. Maybe I can trigger the function to those only…

    #69472

    George Nicolae
    Expired Member
    Post count: 123

    Oke, problem fixed. Forgot to add in the array the elements I want to keep in the sidebar 😀 Now it looks exactly how I want. With post a review link, edit link, add to favorite and share this under the post title only.

    #69557

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    glad it was solved.

    Thanks

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

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

Open Support Ticket