WordPress.org

Ready to get started?Download WordPress

Forums

YouTube SimpleGallery
Different size thumbnails ? (4 posts)

  1. kiwiboy
    Member
    Posted 3 years ago #

    Hey

    I would like to place YouTube Simple Gallery on two different areas in our site - one area has thumbnails 150px wide while the other 200px wide.

    Is there some code I can add into:

    <?php echo do_shortcode('[youtubegallery cols=4]
    http://www.youtube.com/watch?v=PkRrR-DGRik
    [/youtubegallery]'); ?>

    To change the size of the thumbnails?

    Thanks

  2. Stian Andreassen
    Member
    Plugin Author

    Posted 3 years ago #

    There's no option to set individual thumb size for different galleries. But you could do this by putting the gallery wich differs from standard settings in a div, and then use CSS to change the thumbnails in this gallery.

    E.g.

    <div id="specialgallery">
    <?php echo do_shortcode('[youtubegallery cols=4]
    http://www.youtube.com/watch?v=PkRrR-DGRik
    [/youtubegallery]'); ?>
    </div>

    and just before </head> in your themes header.php you put

    <style type="text/css">
    <!--
    #specialgallery .youtube_gallery div { width: 200px !important; }
    -->
    </style>
  3. kiwiboy
    Member
    Posted 3 years ago #

    awesome - thanks for that it worked :)

  4. DimDimin
    Member
    Posted 3 years ago #

    Tell me how to change the height of the thumbnails?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic