I am using the Joomla 3. I would like to know how can I override the Joomla search plugin under template.
I tried copying these files
/plugins/search/k2/k2.php
/plugins/search/k2/k2.xml
under the /templates/MY_TEMPLATE_NAME/html to create plg_search_k2 folder. It doesn't work. Anyone know how can we override the search plugin?
Use the Template Manager for create your overrides, first see the step bu step here:
https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager
Now create your override in the Column Modules > mod_k2_tools Find the file in:
/templates/your_template/html/mod_k2_tools/search.phpFind another example specifically for plugins here:
https://docs.joomla.org/Layout_Overrides_in_Joomla