WordPress.org

Ready to get started?Download WordPress

Forums

Error on Featured Posts - blurred images (2 posts)

  1. mmgarrute
    Member
    Posted 1 year ago #

    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]

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    If you downloaded that theme for free
    Sorry, we don't support themes that are not released under the GPL license.

    If you bought that theme
    You have access to that theme's forums and should post for support there.

Topic Closed

This topic has been closed to new replies.

About this Topic