I’m having a strange problem, I have a theme under “wp-content/businessdirectory-themes/theme_name/” and all my templates are under “wp-content/businessdirectory-themes/theme_name/templates”.
I have noticed specific templates such as ‘submit-listing-section.tpl.php’ is not loading from the folder above, but is loading from within the plugin “business-directory-plugin/templates” instead. I was able to confirm this by changing markup directly within the plugin templates folder. All the documentation I’ve read say the templates directly within the plugins directory will be loaded last in order, so I’m not too sure what could be going on.
To create my base theme, I copied the “no_theme” folder, and placed the “business-directory-plugin/templates/” folder within that so spelling mistakes and file name casing shouldn’t be an issue.
Any tips or help would be greatly appreciated!
In this case, you are trying to override a main plugin file, not a template from the theme and that’s why it is not loading from the theme folder. I believe you got confused that anything under the business-directory-plugin/templates directory is overrideable, which is not true.
Only those files that are called out in the documentation (http://docs.businessdirectoryp…..ation.html) are allowed to override. Sorry for any confusion.
That’s correct. Any other templates would need to be changed directly in the plugin which is not ideal since any changes that you make in the plugin directory itself (under templates) will be overwritten on upgrade. So you need to keep a backup and upgrade knowing this will happen. This is a WordPress plugin upgrade mechanism causing this behavior and unfortunately, this is not something we can stop.
And thanks for your suggestion. We’ll do our best to make it more clear in the documentation.
Most Users Ever Online: 325
Currently Browsing this Page:
Guest Posters: 5252
Newest Members:[email protected]
Moderators: BD Support: 3
Administrators: Business Directory Support: 1720