Ready to get started?Download WordPress


Error on Featured Posts - blurred images (2 posts)

  1. mmgarrute
    Posted 1 year ago #


    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?


    <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]\" />";
                                } ?>
                            <?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'];
                                            <?php } ?>
                                            <?php if( $this->theme->display('post_excerpt', $featuredposts_moreoptions) ) { ?>
                                                    <?php echo $slider['content']; ?> 
                                                    <?php if( $this->theme->display('featuredposts_readmore') ) { ?>
                                                            <a>"><?php $this->theme->option('featuredposts_readmore'); ?></a>
                                                    <?php } ?>
                                            <?php } ?>
                            <?php } ?>
                    <?php } ?>
                <?php } ?>
            <?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>
            <?php } ?>
            <?php if($this->theme->display('pager', $featuredposts_moreoptions)) { ?>
                <div class="fp-nav">
                    <span class="fp-pager"> </span>
            <?php } ?>

    [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