Title: [Plugin: SM Gallery] Styling / Customizing
Last modified: August 20, 2016

---

# [Plugin: SM Gallery] Styling / Customizing

 *  Resolved [mores](https://wordpress.org/support/users/mores/)
 * (@mores)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/)
 * I just got SM Gallery to work and I’m happy 🙂
 * Now, since all of sm gallery’s stuff is being loaded in the footer, AFTER my 
   stylesheet, anything I define will be overwritten since you use the !important
   tag quite a lot, too.
 * How would I go about adjusting the width and height and visibility and position
   of the arrows? Should I edit the plugin’s stylesheet and re-edit when you bring
   out a new version or is there a better way?
 * [http://wordpress.org/extend/plugins/sm-gallery/](http://wordpress.org/extend/plugins/sm-gallery/)

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

 *  Plugin Author [Seth Carstens](https://wordpress.org/support/users/sethcarstens/)
 * (@sethcarstens)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/#post-2933006)
 * thats a very good point, I assume the styles you want to set are in this file:
   jquery.ad-gallery.css
 * I think the best way to fix that issue would be to modify the plugin with a “
   filter” and allow the theme to filter the location of the CSS file. That way 
   you could just create a filter from your themes functions.php file that calls
   a new stylesheet like this:
 * add_filter(‘sm_gallery_css’, ‘my_themes_gallery_css’);
    function my_themes_gallery_css(){
   return get_stylesheet_directory_uri().’/my.jquery.ad-gallery.css’; }
 * Then you would simply create the css file in your theme (or child theme) and 
   edit the styles from there. Modifying plugin files isn’t an option for customization,
   or updating the plugin will simply erase all your modifications.
 * Let me know your thoughts and we will try to program something tomorrow.
 *  Thread Starter [mores](https://wordpress.org/support/users/mores/)
 * (@mores)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/#post-2933007)
 *     ```
       add_filter('sm_gallery_css', 'my_themes_gallery_css');
       function my_themes_gallery_css() {
       return get_stylesheet_directory_uri().'/my.jquery.ad-gallery.css';
       }
       ```
   
 * Will this work NOW or is this an addition you need to enable tomorrow?
 *  Plugin Author [Seth Carstens](https://wordpress.org/support/users/sethcarstens/)
 * (@sethcarstens)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/#post-2933013)
 * that does NOT work yet, but I think it will solve your problem. I’ll update you
   again tomorrow when there should be a new version of the plugin to download
 *  Thread Starter [mores](https://wordpress.org/support/users/mores/)
 * (@mores)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/#post-2933016)
 * Super, thanks!
 * BTW, while you’re firing up your editor you might want to add a way to donate
   to your plugin 🙂
 * Because if your plugin lets me finish a job, you need to get a piece of the cake,
   mate!
 *  Plugin Author [Seth Carstens](https://wordpress.org/support/users/sethcarstens/)
 * (@sethcarstens)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/#post-2933017)
 * Not a problem. I would rather you donate by spreading the word. Tweet it, Facebook
   it, PIN it, and definitely rate it. Social sharing is much more valuable then
   a few bucks.
 *  Thread Starter [mores](https://wordpress.org/support/users/mores/)
 * (@mores)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/#post-2933027)
 * Shall do.
    Still … get the donate button done 😉
 *  Plugin Author [Seth Carstens](https://wordpress.org/support/users/sethcarstens/)
 * (@sethcarstens)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/#post-2933223)
 * the update has been released. You should see it soon and you should be able to
   use the above function, or some modification of it, to load in your own stylesheet.
 * Do note that it does not insert a stylesheet in a “normal” fashion. This is a
   javascript lazy loaded stylesheet (so that it only loads on pages that have a
   gallery… we are efficient like that). If you are searching your page source to
   check if the filter worked, look for javascript in the footer that references
   the gallery CSS file.
 *  Thread Starter [mores](https://wordpress.org/support/users/mores/)
 * (@mores)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/#post-2933224)
 * Cool!
    Thanks, Seth.
 * What’s your paypal email?
 *  Plugin Author [Seth Carstens](https://wordpress.org/support/users/sethcarstens/)
 * (@sethcarstens)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/#post-2933229)
 * You can donate from the official plugins page:
    [http://sethmatics.com/extend/plugins/](http://sethmatics.com/extend/plugins/)
 *  Thread Starter [mores](https://wordpress.org/support/users/mores/)
 * (@mores)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/#post-2933278)
 * Code works as is. Great.

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

The topic ‘[Plugin: SM Gallery] Styling / Customizing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sm-gallery_859cb2.svg)
 * [SM Gallery](https://wordpress.org/plugins/sm-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sm-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sm-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/sm-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sm-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sm-gallery/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [look](https://wordpress.org/support/topic-tag/look/)
 * [styling](https://wordpress.org/support/topic-tag/styling/)

 * 10 replies
 * 2 participants
 * Last reply from: [mores](https://wordpress.org/support/users/mores/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-sm-gallery-styling-customizing/#post-2933278)
 * Status: resolved