Nivo slider – minor tweak to improve pageSpeed

  • Author
    Posts
  • #36069
    John

    I modified frontpage.php to declare the width/height of images in the nivo slider using the global variables tempera_fpsliderwidth and tempera_fpsliderheight. Would just like this in future updates.

    <img width='<?php echo $tempera_fpsliderwidth; ?>' height='<?php echo $tempera_fpsliderheight; ?>' src='<?php echo $slide['image']; ?>' data-thumb='<?php echo $slide['image']; ?>' alt="<?php echo ($slide['title']?wp_kses($slide['title'],array()):''); ?>" <?php if ($slide['title'] || $slide['text']): ?> title="#caption<?php echo $id;?>" <?php endif; ?> />

Viewing 1 post (of 1 total)

The topic ‘Nivo slider – minor tweak to improve pageSpeed’ is closed to new replies.