disable active plugins for specific theme
What @Sumit says in the comments (and you found out for yourself) is correct. If you deactivate a plugin in a theme it is deactivated permanently, until it is activated again. Also, if you attach your deactivation action to wp_head it is executed at every pageload, which is not necessary. What you need to do … Read more