Forum has been created to help all our customers in properly working our theme. We offer complete help with configuration theme and make default look, just like on our Caffeine demo. We don`t offer theme customization.

Before creating a new discussion, please:
1. Check on forum if discussion hasn`t been created before. Use the forum Search on the right.
2. Read carefully the documentation included to package.
If you didn`t find what you need and would like to post a new question click the "Start a New Discussion" button on the right.
4. You can post on forum only after registration (you need purchase code to register) .


NOTE!!! If you are starting a new topic and have got problems with your site and you want us to check what`s wrong please always give url to your site because without that we can`t check what`s wrong. Each case may be different because of your installed plugins, servers or other things.

Lastest Post Thumbnail Image Size on Home Page

  • Hi,

    image

    I have changed the thumbnail image size in the theme-shortcodes.php see below. But the image thumbnail won't change size on the home page.

    Please tell me what to change - many thanks.

    /* ---------------------------------------------------------------------------
     * Shortcode [latest_posts]
     * --------------------------------------------------------------------------- */
    function sc_latest_posts( $attr, $content = null )
    {
        extract(shortcode_atts(array(
            'title' => '',
            'count' => 3,
        ), $attr));
       
        $aPosts = get_posts( 'showposts='. intval($count) );
       
        if(is_array($aPosts))
        {
            $output = '<div class="Latest_posts">';
                $output .= '<h3>'. $title .'</h3>';
                $output .= '<ul>';
                    foreach($aPosts as $post)
                    {
                        $output .= '<li>';
                            $output .= '<div class="thumbnail">';
                                $output .= get_the_post_thumbnail( $post->ID, '100x100c', array('class'=>'scale-with-grid') );
                                $output .= '<span class="quantity_of_comments">'. $post->comment_count .'</span>';
                            $output .= '</div>';
                            $output .= '<div class="info">';
                                $output .= '<h6><a href="'. get_permalink( $post->ID ) .'">'. $post->post_title .'</a></h6>';
                                $output .= '<span class="date">'. get_the_time('F j, Y', $post->ID) .'</span>';
                            $output .= '</div>';
                        $output .= '</li>';
                    }
                $output .= '</ul>';
            $output .= '</div>'."\n";
        }
           
        return $output;
    }


  • 1 Comment sorted by