joomla template override search plugin

377 Views Asked by At

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?

1

There are 1 best solutions below

3
AlejandroVega On

Use the Template Manager for create your overrides, first see the step bu step here:

Now create your override in the Column Modules > mod_k2_tools Find the file in:
/templates/your_template/html/mod_k2_tools/search.php

Find another example specifically for plugins here:
https://docs.joomla.org/Layout_Overrides_in_Joomla