Customize your pages strictures in templates
This topic contains 12 replies, has 3 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 TicketTagged: customizing, templates
-
AuthorPosts
-
December 11, 2015 at 2:49 pm #63386
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 🙂
December 11, 2015 at 4:14 pm #63397OK, While searching I was able to solve No 1, How to Removing Tabs
December 11, 2015 at 10:07 pm #63475Hi,
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
December 14, 2015 at 9:45 pm #63806The 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
December 14, 2015 at 10:23 pm #63827Hi,
that is not possible without custom coding…
Thank you
December 15, 2015 at 6:40 am #63859Yes 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
using custom code I have made some progress in modification see demo here
December 16, 2015 at 10:15 pm #64139Hi,
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
January 17, 2016 at 5:39 pm #69119I’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?
January 17, 2016 at 6:53 pm #69124Also 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.
January 18, 2016 at 9:51 pm #69256Hi,
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
January 20, 2016 at 8:46 am #69471I 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…
January 20, 2016 at 8:56 am #69472Oke, 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.
January 20, 2016 at 5:13 pm #69557Hi,
glad it was solved.
Thanks
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket