Title: [Plugin: WP-SimpleViewer] gallery defaults
Last modified: August 20, 2016

---

# [Plugin: WP-SimpleViewer] gallery defaults

 *  [Steve Taylor](https://wordpress.org/support/users/gyrus/)
 * (@gyrus)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-simpleviewer-gallery-defaults/)
 * Hi,
 * Thanks for the plugin. I’m just trying to work out how best to implement it on
   a new site. There’s quite a few galleries, and I want uniform settings for them.
   I can’t find a way the change the defaults, or to create a slideshow configuration
   once and use that repeatedly.
 * Am I missing a way of doing this? If there isn’t currently, could a submit a 
   small patch for the plugin? It would probably only take the addition of a line
   like:
 * `$attributes = apply_filters( 'wpsv_attributes', $attributes );`
 * Then anyone could hook in and override defaults.
 * cheers,
 * Steve
 * [http://wordpress.org/extend/plugins/wp-simpleviewer/](http://wordpress.org/extend/plugins/wp-simpleviewer/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Steve Taylor](https://wordpress.org/support/users/gyrus/)
 * (@gyrus)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-simpleviewer-gallery-defaults/#post-2228734)
 * FYI, I’ve been hacking the plugin, and I found it very difficult to take full
   control of the settings so I can apply the same settings to all slideshows. There’s
   the basic options, pro options, and stuff like width and height are scattered
   around.
 * In the end I’ve added this to my .htaccess:
 *     ```
       # Rewrite for SimpleViewer XML files
       RewriteRule ^wp\-content/uploads/([0-9]+)\.xml$ wp-content/themes/mytheme/simpleviewer_xml.php?gallery=$1 [L,R]
       ```
   
 * Then that script reads the gallery XML file and does a simple replace of all 
   the root tag attributes.
 * Still had to hack the plugin, wp-simpleviewer.php in `shortcode_handler`, to 
   override the width / height etc.
 * I know these can be controlled via the edit screen, but I don’t want my client
   to have to remember to set the settings right for every gallery. They should 
   just upload images, place the shortcode there, and have the same config without
   doing anything else.
 * Let me know if you’ve got anything to help controlling defaults across the board
   in the pipeline for future releases!
 * thanks,
 * Steve

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP-SimpleViewer] gallery defaults’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-simpleviewer.svg)
 * [WP-SimpleViewer](https://wordpress.org/plugins/wp-simpleviewer/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-simpleviewer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-simpleviewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-simpleviewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-simpleviewer/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Steve Taylor](https://wordpress.org/support/users/gyrus/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-simpleviewer-gallery-defaults/#post-2228734)
 * Status: not resolved