最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugin nextgen gallery - How to increase the thumnail size of nggallery carousel template

programmeradmin3浏览0评论

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
Add a comment  | 

1 Answer 1

Reset to default 0

I'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.

发布评论

评论列表(0)

  1. 暂无评论