I want to increase the thumbnail image size of nggallery carousel template. Check this link /?pid=6 is there any better code to do it. Here, is the code:
<!-- Thumbnail list -->
<?php foreach ( $images as $image ) : ?>
<?php if ( $image->hidden ) continue; ?>
<?php $subnavi[] = $image->pidlink ;?>
<li id="ngg-image-<?php echo $image->pid ?>" class="ngg-thumbnail-list <?php if ($image->pid == $current->pid) echo 'selected' ?>" >
<a href="<?php echo $image->pidlink ?>">
<img src="<?php echo $image->thumbnailURL ?>" alt="<?php echo $image->alttext ?>" />
</a>
</li>
<?php endforeach; ?>
I want to increase the thumbnail image size of nggallery carousel template. Check this link http://arkamediaworks/rel_test/uncatagorize/hello-2/?pid=6 is there any better code to do it. Here, is the code:
<!-- Thumbnail list -->
<?php foreach ( $images as $image ) : ?>
<?php if ( $image->hidden ) continue; ?>
<?php $subnavi[] = $image->pidlink ;?>
<li id="ngg-image-<?php echo $image->pid ?>" class="ngg-thumbnail-list <?php if ($image->pid == $current->pid) echo 'selected' ?>" >
<a href="<?php echo $image->pidlink ?>">
<img src="<?php echo $image->thumbnailURL ?>" alt="<?php echo $image->alttext ?>" />
</a>
</li>
<?php endforeach; ?>
Share
Improve this question
edited Aug 8, 2013 at 13:25
Marin Bînzari
1,05213 silver badges20 bronze badges
asked Aug 8, 2013 at 11:33
Saikumar TallaSaikumar Talla
11 bronze badge
1 Answer
Reset to default 0I'm not sure if I understand you right, but this is how you can do it:
<img src="<?php echo $image->thumbnailURL ?>"
alt="<?php echo $image->alttext ?>"
width="your_width_in_pixels"
height="your_height_in_pixels" />
If this is the anwer then it's not related to Wordpress but to HTML! Have a nice day.