Monday, September 3, 2012

Disable code on specific Joomla pages

If you in trouble like me, and you cant fix problems which was created before you and you want to disable codes like mootools which was coded in index.php only on specific pages, so here is how:

1) Find index.php of your template
2) Find code which you want to disable
3) Check which component name of pages on which you want to disable code. In my situation it was - "com_hakishop"
4) Next add code lines:

if($option != 'com_hikashop') {
5) and close code with
} 
5) Save file. Delete cache. Refresh site to check if it works.
6) Done.

1 comment: