Forums

[resolved] [Plugin: User Community] User gallery thumbnails in 3 column layout (6 posts)

  1. Kala Gallery
    Member
    Posted 2 years ago #

    Hi

    I have looked at other questions but can't find the answer.

    This is probably a simple thing, but I can not find the settings anywhere, I want to enable the user gallery to display in 3 columns at the moment it only displays in one, where can I change this setting?

    Any help would be great on this.

    Thanks in advance

    Mark

  2. Txanny
    Member
    Posted 2 years ago #

    The plugin uses the WordPress default styles for galleries to show the thumbnails in the proper way. It have to show them on the same format as the default WP galleries when inserted into a post. If you see only one column, it's because your theme has not full support for WP 2.8, as it does not have styles for WP-Galleries.

    Here you have the styles I use on my Chameleon theme to show the thumbnails on columns. Paste it in your theme or plugin style.css file and test it. The columns number is set automatically depending on the thumbnail size, just remember to keep this if you update the plugin or the theme (depending on which style.css file you set it):

    .gallery {
    	margin: auto;
    	margin-left: auto;
    	margin-right: auto;
    	}
    
    .gallery-item {
    	float: left;
    	display: inline;
    	margin: 5px;
    	padding: 3px;
    	border: 1px solid;
    	text-align: center;
    	}
    
    .gallery img {
    	border: 0;
    	}
    
    .gallery-item:hover {
    	}
    
    .gallery-caption {
    	margin-left: 0;
    	}
    
    img, .gallery-item {
    	-moz-border-radius: 5px;
    	-khtml-border-radius: 5px;
    	-webkit-border-radius: 5px;
    	border-radius: 5px;
    	}
  3. Kala Gallery
    Member
    Posted 2 years ago #

    That worked perfectly :) thank you awesome mod too *****

  4. Nilreb
    Member
    Posted 2 years ago #

    Hi having same problem, being a bit think but where is the style.css file? thanks

  5. Txanny
    Member
    Posted 2 years ago #

    You have one on your theme's folder. This is my suggested place to add styles. Also, you have another in the plugin folder.

    But remember, the style.css in the plugin folder is overwritten each time you update the plugin, the one on the themes folder when you update your theme. So, you're advised to keep a copy of your changes.

    My best suggestion is to get a theme that fully supports WordPress default styles (And gallery style is one of them). Also, you can ask the theme developers to include styles for WordPress built-in galleries.

  6. daksullivan
    Member
    Posted 2 years ago #

    Works Great :)

Topic Closed

This topic has been closed to new replies.

About this Topic