Title: Plugin not working with Roots theme
Last modified: August 21, 2016

---

# Plugin not working with Roots theme

 *  [jayseventwo](https://wordpress.org/support/users/jayseventwo/)
 * (@jayseventwo)
 * [13 years ago](https://wordpress.org/support/topic/plugin-not-working-with-roots-theme/)
 * Hi, this looks like an awesome plugin, but it does not work with Roots theme (
   [http://www.rootstheme.com/](http://www.rootstheme.com/)) – would you have any
   idea why? You can use the following link as an example:
 * [http://jayseventwo.com/timelineps/harris/](http://jayseventwo.com/timelineps/harris/)
 * I have tried the 2012 theme and it appears to work fine.
 * Thanks in advance for your help.
 * [http://wordpress.org/extend/plugins/photospace-responsive/](http://wordpress.org/extend/plugins/photospace-responsive/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Prpl](https://wordpress.org/support/users/grvrulz/)
 * (@grvrulz)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-with-roots-theme/#post-3794693)
 * This is because the Roots theme rewrites the gallery shortcode with it’s own 
   cleanup code. In order to make it work, ope the file lib/cleanup.php and comment
   the following lines(363,364)
 *     ```
       remove_shortcode('gallery');
       add_shortcode('gallery', 'roots_gallery');
       ```
   
 * And it’ll work.
 *  Thread Starter [jayseventwo](https://wordpress.org/support/users/jayseventwo/)
 * (@jayseventwo)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-with-roots-theme/#post-3794694)
 * Thanks mate – ended up using another gallery as i had to get this project out
   the door, but will try this code on another.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin not working with Roots theme’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/photospace-responsive_a8a89c.svg)
 * [Photospace Responsive Gallery](https://wordpress.org/plugins/photospace-responsive/)
 * [Support Threads](https://wordpress.org/support/plugin/photospace-responsive/)
 * [Active Topics](https://wordpress.org/support/plugin/photospace-responsive/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photospace-responsive/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photospace-responsive/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jayseventwo](https://wordpress.org/support/users/jayseventwo/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-with-roots-theme/#post-3794694)
 * Status: not resolved