Error on Featured Posts – blurred images
-
Hello,
I have a problem in featured posts ITech theme.
The images that are featured in posts are blurred and doubled.
Site: http://www.maritimeportbrazil.com/
This all because I had to replace the printf function by echo — on wp-content/themes/iTech/includes/featuredposts/template.php
How to solve the problem?
PHP:
<div class="fp-slider clearfix"> <div class="fp-slides-container clearfix"> <div class="fp-slides"> <?php if($the_slider) { foreach ($the_slider as $slider) { ?> <div class="fp-slides-items"> <div class="fp-thumbnail"> <?php if($this->theme->display('thumbnail', $featuredposts_moreoptions)) { if($slider['link'] && $slider['img']) { printf("%s<img src=\"$slider[img]\" />%s", "<a href="$slider[link]" title="$slider[title]">", "</a>"); } else { echo "<img src=\"$slider[img]\" />"; } } ?> </div> <?php if( $this->theme->display('post_title', $featuredposts_moreoptions) || $this->theme->display('post_excerpt', $featuredposts_moreoptions)) { ?> <div class="fp-content-wrap"> <div class="fp-content"> <?php if( $this->theme->display('post_title', $featuredposts_moreoptions) ) { ?> <h3 class="fp-title"> <?php if($slider['link']) { echo"<a href="$slider[link]" title="$slider[title]"><img src=\"$slider[img]\" /></a>"; } else { echo $slider['title']; } ?> </h3> <?php } ?> <?php if( $this->theme->display('post_excerpt', $featuredposts_moreoptions) ) { ?> <p> <?php echo $slider['content']; ?> <?php if( $this->theme->display('featuredposts_readmore') ) { ?> <a>"><?php $this->theme->option('featuredposts_readmore'); ?></a> <?php } ?> </p> <?php } ?> </div> </div> <?php } ?> </div> <?php } ?> <?php } ?> </div> <?php if($this->theme->display('next_prev', $featuredposts_moreoptions)) { ?> <div class="fp-prev-next-wrap"> <div class="fp-prev-next"> <a href="#fp-next"></a> <a href="#fp-prev"></a> </div> </div> <?php } ?> <?php if($this->theme->display('pager', $featuredposts_moreoptions)) { ?> <div class="fp-nav"> <span class="fp-pager"> </span> </div> <?php } ?> </div> </div>
[In future please wrap code in backticks]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Error on Featured Posts – blurred images’ is closed to new replies.