Notice: This forum has become difficult to maintain and will no longer be supported.
If you have a current account or a bug report, please open a ticket. If you have questions about the free version of Business Directory, please post in the WordPress.org forum and our team will respond there.
I am trying to override this template: search-form.php.tpl, but the file doing the overriding does not work. It is located in the my child theme path, under the business-directory directory. I have overridden other templates with success. For this one, should I override the $search_form variable passed to the search.tpl.php template? I think it gets content using this php expression as a path, "WPBDP_PATH . 'templates/search-form.tpl.php'", and dumping the value of WPBDP_PATH, I got a path to the wp-content/plugins/business-directory-plugin... Therefore, it won't load from my child-theme ever. Can you tell me if what I am saying is right? Thank you.
In this case, you are trying to override main plugin file, not a template from the theme and that’s why it’s not working. 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 are allowed to override. I’m sorry but you can’t override just any file in the plugin in this case.
Most Users Ever Online: 402
Currently Online: email@example.com
Currently Browsing this Page:
Guest Posters: 5349
Newest Members:David Barnett
Moderators: bizdirectorysupport: 18712, BD Support: 3
Administrators: Business Directory Support: 1720, Steph Wells: 0