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: 211
Currently Browsing this Page:
Guest Posters: 5166
Moderators: BD Support: 2
Administrators: Business Directory Support: 1719