Template override does not work for geodir_signup.php
This topic contains 11 replies, has 4 voices, and was last updated by Paolo 11 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
June 25, 2014 at 12:54 am #5997
**Bug:
I put geodir_signup.php into the theme directory and made edits to it.
Expected behavior — those edits over-ride the geodir_signup.php file in the plugin directory.
Observed behavior — the edits were ignored.
Note – all the other plugin template files are just in the main theme directory… I also checked to see if putting them into a /geodirectory-templates folder inside the theme folder would matter — theme override files only seem to work when they are just in the “root” of the theme directory.
**Feature Request
It would be ideal to keep to the Woocommerce model where plugin overrides can be in a folder structure that matches the plugin’s folder structure.
That way all the geo template files can be in a folder inside the theme folder and so it’s much more organized.
But for sure – I hope the bug gets fixed — for now I’ve made my edits to geodir_signup.php inside the plugin folder – but now I gotta remember to move that around when I update the plugin.
Not sure if there are other template files… will update the thread if I find em.
June 25, 2014 at 12:57 am #5998HI, thanks for reporting this.
I’ll flag it for Vikas. He’ll update you asap.
June 25, 2014 at 3:26 pm #6135Plz give name to file geodir-signup.php in theme folder instead of geodir_signup.php
June 25, 2014 at 3:52 pm #6141Hi,
I think the need for template name change is non-sense. That’s obviously a bug, the name shouldn’t change and I’ll make sure with next version this isn’t necessary.
Thx
June 25, 2014 at 4:06 pm #6142Anyone that knows how to fix this system, let me know I’ve been trying to hire someone to fix this and people are saying “no way” so I am lastly posting jobs to attempt to not have completely wasted a weeks worth of web development. Anyone that knows how this plugin works, please help fix my system. This has messed up my site.
June 25, 2014 at 5:52 pm #6164Hi,
it looks like your wordpress permalinks were wrong and now they are fixed. I don’t see the problem on your website. All links seems to be correct.
Thx
June 25, 2014 at 7:34 pm #6177The site is working correctly now, thank you for your support it was a lot of help.. Thumbs up!
June 25, 2014 at 7:36 pm #6178glad everything is finally working as you wish…
ThxJune 28, 2014 at 3:06 am #6570Looks like the update to 1.1.5 breaks having any of the templates in the theme folder?
I can’t find the 1.1.5 release notes – from the wordpress admin – a link is given but the most recent update showing there is 1.0.4 ?
http://cl.ly/image/2B3Q1J2t3d0l
Did you take the feature request and have the theme override files in a folder? If so – what is the folder structure? I tried geodirectory-templates and it didn’t work, so rolled back to 1.1.3.
June 28, 2014 at 6:22 pm #6632Hi Jason,
sorry for the change-logs not updated.
That’s my fault, I totally forgot to take care of it. Will do asap…
Yes in the new version we changed it so that it works as suggested in this topic.
No need to change template file names when moving them from the plugin to the child theme, but yes they need to be in a folder called geodirectory to be used.
see image attached…
…and the result : http://wpgeo.directory/?geodir_signup=true (you need to be logged out to see it)
p.s. beware, few tamplate names have been changed…
June 28, 2014 at 7:11 pm #6639@paolo – thanks for taking my suggestion! so much nicer having them all in their own dir… the template I’m using has got quite a number of files as well so it was getting confusing!
Thank you also for updating the release notes! – (ps so far still not showing here):
June 28, 2014 at 7:22 pm #6641Hi Jason,
asap doesn’t mean : right now 🙂
I have to collect all change logs (VIkas needs to send me one) edit them and pubblish it.
Expect it by monday.
Thx
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket