0
Welcome Guest! Login
0 items Join Now

Solar Sentinal: automatic resize image?

    • AppleUser's Avatar
    • AppleUser
    • Jr. Rocketeer
    • Posts: 31
    • Thanks: 0

    Solar Sentinal: automatic resize image?

    Posted 15 years 5 months ago
    • I just install the theme Solar Sentinel for WordPress, and it looks great! But is it possible that the thumb and the large image automatic resize? On the moment if my image is to large, the thumb also is to large...
    • AppleUser's Avatar
    • AppleUser
    • Jr. Rocketeer
    • Posts: 31
    • Thanks: 0

    Re: Solar Sentinal: automatic resize image?

    Posted 15 years 5 months ago
    • I found a solution in index.php:

      Change (thumb feature):
      <img src="<?php echo $thumb ?>" class="feature-sub" alt="<?php the_title(); ?>" />

      To:

      <img src="<?php echo $thumb ?>" class="feature-sub" width="90" height="43" alt="<?php the_title(); ?>" />


      Change (thumb latest news):

      <div class="fp-sub1">
      <a href="<?php the_permalink(); ?>"><img alt="<?php the_title(); ?>" src="<?php echo $thumb; ?>" /></a>
      </div>

      To:

      <div class="fp-sub1">
      <a href="<?php the_permalink(); ?>"><img width="66" height="58" alt="<?php the_title(); ?>" src="<?php echo $thumb; ?>" /></a>
      </div>

      And for Micronews:

      Change:

      <img src="<?php echo $microthumb; ?>" alt="<?php the_title(); ?>" class="micronews-thumb" />

      To:

      <img src="<?php echo $microthumb; ?>" width="120" height="105" alt="<?php the_title(); ?>" class="micronews-thumb" />

Time to create page: 0.058 seconds