Modifying Layout of Detail Page
This topic contains 13 replies, has 4 voices, and was last updated by Paolo 10 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
October 5, 2014 at 3:45 pm #17536
Hi Again,
I would like to modify the detail page to reflect the design in the attached screenshot and I just need to guidance if possible on how best to go about this.
It’s probably best to take one step at a time so starting with the about section which is the information part from the listing. What is the best way to move that into the main content area? and to the right of the image gallery?
Following that, as you can see, I would like the additional information from the listing to be displayed to the right of information. For some reason, The extra information and custom fields that I created are not showing up in the sidebar, nor is any of the contact information. Could I be missing a setting somewhere?
My understanding is that all of the positioning works around hooks (which I am not really familiar with using yet) is this the best approach to moving the various elements around?
I have copied all the template files into my child theme but not clear if editing these alone is sufficient for what I need but I also understand that if I make changes to the templates in the plugin directory, any updates will overwrite my changes?
Many thanks
Mike
October 5, 2014 at 4:05 pm #17539That is a nice design. I have no idea how to do this, but will be following this post/topic with interest.
Cheers,
StaceyOctober 5, 2014 at 4:20 pm #17540Thanks Stacey,
It was actually designed by my wife. I’ll be happy when it’s been transformed from an image into a working site!
I’ll pass on your positive comment though and hope this thread can help others as well 🙂
Cheers
Mike
October 5, 2014 at 6:42 pm #17546Hi mike,
it is indeed a nice design and given that you will needs few functions to create it, it is considered a customization.
Therer are several posts already on the forum discussing how to move elements around with hooks and filter.
Just search for “remove_action” and you will find plenty of exmaple that could be useful for what you want to do.
I’m 99% sure that you could accomplish that , without having to move anything in your child theme. Just functions in your child theme functions.php file.
The only support question here is why your custom fields are not showing up and for that we would need a link and wp admin credentials.
Let us know,
Thanks
October 5, 2014 at 7:45 pm #17553This reply has been marked as private.October 5, 2014 at 7:47 pm #17554Hi Paolo,
Thanks for the reply and comment on the design 🙂 Sent message and will look at other posts around the topic of moving elements. Am a bit new to hooks and filters but need to get my head around them 🙂
Cheers
Mike
October 5, 2014 at 11:57 pm #17561Somehow your theme or some other plugin is removing the option in GD > design > detail to have a sidebar. And that is why nothing shows there.
The support policy is linked in the sidebar of every page:
https://wpgeodirectory.com/support-policy/Scroll down a bit to see what the difference is between support and customization.
October 6, 2014 at 12:23 pm #17601Hi Guust,
Thanks for the reply and checking out the site. With regards to the conflict, I have the Genesis compatibility plugin installed, is this not meant to deal with theme related issues?
If everything is configured correctly in the Geodirectory settings then I will go through and try disabling plugins. So are there some widget areas missing as well as I thought there should be more for the details page?
Thanks for the url relating to support. I am a bit confused though as I have seen other examples of the developers giving specific advice and code snippets to people who want to do very similar things to what I am trying to achieve. Here is a perfect example thread:
I would also offer the hopefully constructive criticism that if it is policy not to provide assistance then the developer documentation needs to be much more comprehensive and complete
October 6, 2014 at 12:57 pm #17606Support and assistance gladly given, even assistance to get customization going, but not complete customization unless enough people request it.
The widget area is showing, it is called GD Detail Sidebar, but it is not showing on the frontend.
Let’s wait for Paolo, he understands Genesis better than me.October 6, 2014 at 1:08 pm #17608Hi Guust,
Point taken and I do understand that people can’t expect to essentially have a theme completely customised for them for free which is what I want. just pointers in the right direction 🙂 because as I said the documentation is not great at the moment (although I understand this is a new product and that will grow over time) so even once you have got your head around hooks, actions and filters etc, it is a bit difficult to be self sufficient without knowing which hooks and orders of preference etc you should be targeting.
Unless there is documentation for this somewhere that I am missing? In which case I will be more than happy to go and read it and learn how to do what I need 🙂
Thanks again with regards to the sidebar issue, knowing that it is at least not a configuration issue within the plugin then I can look at disabling plugins and any further thoughts Paolo can give regarding Genesis would be much appreciated 🙂
Cheers
Mike
October 6, 2014 at 7:24 pm #17630I should update to note that I found the following in my child theme functions.php which was hiding the detail sidebar. I am honestly not sure how this ended up in there but can only assume it was an error on my part.
remove_action(‘geodir_detail_page_sidebar’, ‘geodir_detail_page_sidebar_content_sorting’, 1);
October 7, 2014 at 12:04 am #17663Thanks for letting us know. Shall I set this to resolved?
October 7, 2014 at 12:58 am #17664Yes, I suppose so 🙁 Although it would have been nice to have had some comment about whether there was more developer documentation available somewhere or when the docs are likely to be expanded on regarding hooks, filters and priorities etc.
October 7, 2014 at 3:38 pm #17698I will do my best to find the time to start writing 1 page of documentation for each GD function along with one example of use, very similar to the wordpress codex as soon as possible.
However, given that the templates are very simply structured, by going through the code and with the help of the example already provided in the forum, anyone with the required programming skills, should easily be able to move things around.
I’m saying this, because John created all compatibility packs by deducing himself what needed to be done and I’ve also seen various of other members’ websites, where the detail page has been totally modified through hooks and actions.
We will keep you posted.
Thx
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket