Thanks for your update with the good news regarding your progress.
Regarding your “Q1”, the large, fuzzy thumbnail images are displayed because of CSS styles supplied by your theme. If you look at lines 524-543 in the /wp-content/themes/transcend_pro/core/css/base.css
file you will see:
/* WP GALLERY */
.gallery { margin:0 auto 30px; }
.gallery .gallery-item { float:left; display:block; margin:0 0 3% 3%; text-align:center; width:48.5%; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; box-sizing:border-box; }
.gallery .gallery-item:hover { }
.gallery .gallery-icon { text-align:center; padding:5px; margin:0; overflow:hidden; line-height:0; border:1px solid rgba(0,0,0,0.1); }
.dark .gallery .gallery-icon { border:1px solid rgba(255,255,255,0.2); }
.gallery-columns-2 .gallery-item { width:48.5000%; }
.gallery-columns-3 .gallery-item { width:31.3333%; }
.gallery-columns-4 .gallery-item { width:22.7500%; }
.gallery-columns-5 .gallery-item { width:17.6%; }
.gallery-columns-6 .gallery-item { width:14.1666%; }
.gallery-columns-7 .gallery-item { width:12.5714%; margin:0 0 2% 2%; }
.gallery-columns-8 .gallery-item { width:10.75%; margin:0 0 2% 2%; }
.gallery-columns-9 .gallery-item { width:9.33333%; margin:0 0 2% 2%; }
.gallery .gallery-item:first-child,
.gallery br + .gallery-item { margin-left:0; }
.gallery dl a { display:block; }
.gallery dl a img { width:100%; height:auto; margin:0 auto; }
.gallery .gallery-caption { font-size:12px; line-height:1.2em; margin:10px 0 0; }
.gallery br+br { display:none; }
The line .gallery dl a img { width:100%; height:auto; margin:0 auto; }
is overriding the width of the thumbnails. I am not a CSS expert but I believe you can fix this by editing the base.css
file or, better, applying a custom style template to your [mla_gallery]
shortcode. That will avoid problems with other galleries in the site that rely on the theme’s styles.
You will need a custom Style Template that looks like this:
< style type='text/css'>
#[+selector+] {
margin: auto;
width: 100%;
}
#[+selector+] .gallery-item {
float: [+float+];
margin: [+margin+];
text-align: center;
width: [+itemwidth+];
}
#[+selector+] .gallery-item .gallery-icon img {
width: auto;
border: 2px solid #cfcfcf;
}
#[+selector+] .gallery-caption {
margin-left: 0;
vertical-align: top;
}
< /style>
To create the Style Template:
- Navigate to the Settings/Media Library Assistant Shortcodes tab.
- Click on the “Style” view just above the templates table.
- Hover over the “default (default)” Style entry (for the Gallery shortcode) and click the “Copy” action link.
- When the page refreshes, the “Edit Template” screen will appear.
- Change the template Name to (for example) “annettes”.
- Make the changes you need to match the custom template show above. In particular, add the
width: auto;
line to the #[+selector+] .gallery-item .gallery-icon img
styles
- Make sure to remove the spaces in the two “style” HTML tags, which I had to add to the code example.
- Scroll to the bottom and click “Update”.
Once that’s done you can add the template to your shortcode:
[mla_gallery post_mime_type=application/pdf post_parent=all link=file columns=5 size=thumbnail orderby=date order=desc mla_style=annettes]
As I wrote, I believe the styles in the custom template will override those in the theme.
Regarding your Q3, I am guessing that your term assignments are in the Att. Categories taxonomy supplied by MLA; is that right? If so, you must add attachment_category=newsletter-archive
to your shortcode in place of the category_name
parameter. That parameter only works for the WordPress “Categories” taxonomy.
I hope the additional answers get you the results you need. I am marking this topic resolved, but please update it if you have any problems or further questions regarding the above suggestions.