WordPress.org

Ready to get started?Download WordPress

Forums

SM Gallery
[resolved] How can I center SM Gallery and slow it down? (6 posts)

  1. leejosepho
    Member
    Posted 1 year ago #

    This is a simple, hassle-free plugin that does exactly what I wanted and works great! Many thanks.

    Two questions:

    1) How can I center [gallery] on a page?

    2) How can I slow it down from 5 seconds to 30 seconds?

    http://www.nnywriters.com/clips-n-quotes/

    http://wordpress.org/extend/plugins/sm-gallery/

  2. Seth Carstens
    Member
    Plugin Author

    Posted 1 year ago #

    1. use the "text" editing tab, build a <div> tag around the gallery and use normal means of centering (display inline + text-align or margin auto)
    2. you would have to have the plugin at this point to slow it down, the jquery that loads the gallery has options, but there is currently no filters that would allow overwriting them

    a. goto documentation and ready how to append the option for the jQuery plugin (http://coffeescripter.com/code/ad-gallery/)
    b. modify the plugin line that calls the gallery (do a search for the following within the files "jQuery("#galleryContent<?php echo $count;?> .ad-gallery" ).adGallery"

  3. leejosepho
    Member
    Posted 1 year ago #

    I tried this...
    <p style="text-align: center;"><div>[gallery]</div></p>
    ...but that did not work, and I just realized it would also be nice for the gallery to use the full width available on the page. However, I did find the line to change to slow the gallery down.

  4. Seth Carstens
    Member
    Plugin Author

    Posted 1 year ago #

    Did you try to remove the P tag and put a style="margin:auto;} on the div tag?

  5. Seth Carstens
    Member
    Plugin Author

    Posted 1 year ago #

  6. leejosepho
    Member
    Posted 1 year ago #

    I now have this...
    <a style="margin:auto;"><div>[gallery]</div></a>
    ...and that is not making any difference. I have a Twenty Twelve Child Theme, and I might have to have someone do something there since I am asking for more than your fine plugin is intended to do a the moment. So, many thanks for your extra effort!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.