Forums

NextGEN Gallery
How do I use different css stylesheets for differnt galleries? (2 posts)

  1. comatosed
    Member
    Posted 6 months ago #

    I've been trying for about three hours now. All I want to do is have gallery A use one kind of sylesheet and gallery B use another. I think it's possible and I'm just missing something. This tutorial was the closest I got:

    http://mygraphicfriend.wordpress.com/2010/01/11/custom-style-sheet-and-templates-for-nextgen-gallery-with-special-instructions-for-child-themes/

    but all my galleries are effected when I change the css file. There must be a way to call a specific style sheet in the gallery.php file, then I could make multiple gallery.php files and use the shortcode [ nggallery id=1 template=yourtemplatename ] for various galleries.

    I'm not that great with php or css so please walk me through it if you could. Thanks,

    Greg

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

  2. inhouse
    Member
    Posted 3 months ago #

    Greg, did you ever figure this out? You don't have to get tricky, you can just target different galleries specifically using CSS. Each gallery has its own id so if you want to make images in gallery A look different than B you would need to target the specific gallery. Hope this helps. Let me know if you need more help.

    For example:

    #ngg-gallery-1-586 .ngg-gallery-thumbnail {
    width:100px;
    float:left;
    }
    
    #ngg-gallery-2-245 .ngg-gallery-thumbnail {
    width:60px;
    float:right;
    }

Reply

You must log in to post.

About this Plugin

About this Topic