Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #4446

    I have swapped the three column images on the home page in index.php, but they all show up as the the first one replaced (test1.jpeg in the code below). What am I missing?

    // the kriesi_build_image function used here checks if the image should be resized.

    // it returns the resized image if the size is larger than the parameters provided

    // the function is located in framework/helper_functions

    $placeholder_image1 = get_bloginfo(‘template_url’).’/files/test1.jpg';

    #$placeholder_image2 = get_bloginfo(‘template_url’).’/files/test2.jpg';

    #$placeholder_image3 = get_bloginfo(‘template_url’).’/files/medium1.jpg';

    $placeholder_image1 = kriesi_build_image(array(‘url’=>$placeholder_image1,’height’=>’124′,’width’=>’280′));

    #$placeholder_image2 = kriesi_build_image(array(‘url’=>$placeholder_image2,’height’=>’124′,’width’=>’280′));

    #$placeholder_image3 = kriesi_build_image(array(‘url’=>$placeholder_image3,’height’=>’124′,’width’=>’280′));

    #46350

    I have the same problem! please help me…..

    Thanks !!!

    #46351

    Hey,

    in index.php replace:

    $placeholder[2] = $placeholder_image1

    with:

    $placeholder[2] = $placeholder_image2

    and:

    $placeholder[3] = $placeholder_image1

    with:

    $placeholder[3] = $placeholder_image3

    #46352

    hi,

    its not solved yet.

    This is my code :

    $placeholder_image1 = get_bloginfo(‘template_url’).’/files/medium1.jpg';

    #$placeholder_image2 = get_bloginfo(‘template_url’).’/files/medium2.jpg';

    #$placeholder_image3 = get_bloginfo(‘template_url’).’/files/medium3.jpg';

    $placeholder_image1 = kriesi_build_image(array(‘url’=>$placeholder_image1,’height’=>’124′,’width’=>’280′));

    #$placeholder_image2 = kriesi_build_image(array(‘url’=>$placeholder_image2,’height’=>’124′,’width’=>’280′));

    #$placeholder_image3 = kriesi_build_image(array(‘url’=>$placeholder_image3,’height’=>’124′,’width’=>’280′));

    $placeholder[1] = $placeholder_image1.'<h3>HTML Template „Display“</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo conse. Read more</p>';

    $placeholder[2] = $placeholder_image2.'<h3>Amanded with Adobe Flash</h3><p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Read more</p>';

    $placeholder[3] = $placeholder_image3.'<h3>jQuery to the rescue</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo conse.

    quat. Read more‘;

    - this is my website : http://moover.co.il/

    – Only the display image – medium1.jpg appears.

    can you please help me ?

    thanks,

    amir

    #46353

    hi,

    i work on the wevsite, so what you see there now might be different from the code above in my previous questions.

    thanks

    #46354

    Hey,

    The code dictating the image path and size is commented out. Replace this code:

    $placeholder_image1 = get_bloginfo('template_url').'/files/medium1.jpg';
    #$placeholder_image2 = get_bloginfo('template_url').'/files/medium2.jpg';
    #$placeholder_image3 = get_bloginfo('template_url').'/files/medium3.jpg';

    $placeholder_image1 = kriesi_build_image(array('url'=>$placeholder_image1,'height'=>'124','width'=>'280'));
    #$placeholder_image2 = kriesi_build_image(array('url'=>$placeholder_image2,'height'=>'124','width'=>'280'));
    #$placeholder_image3 = kriesi_build_image(array('url'=>$placeholder_image3,'height'=>'124','width'=>'280'));

    with this:

    $placeholder_image1 = get_bloginfo('template_url').'/files/medium1.jpg';
    $placeholder_image2 = get_bloginfo('template_url').'/files/medium2.jpg';
    $placeholder_image3 = get_bloginfo('template_url').'/files/medium3.jpg';

    $placeholder_image1 = kriesi_build_image(array('url'=>$placeholder_image1,'height'=>'124','width'=>'280'));
    $placeholder_image2 = kriesi_build_image(array('url'=>$placeholder_image2,'height'=>'124','width'=>'280'));
    $placeholder_image3 = kriesi_build_image(array('url'=>$placeholder_image3,'height'=>'124','width'=>'280'));

    Save and upload; this should now work properly.

    James

    #46355

    it works ! thanks you so much !!

    #46356

    another question in this issue : how do I add a link to the three images ? right now the link is only bellow the text.

    thanks,

    amir

    #46357

    Yes, got it. Thanks!

    #46358

    Hey,

    please replace:

    $placeholder[1] = $placeholder_image1.'

    with:

    $placeholder[1] = '<a href="http://website.com">'.$placeholder_image1.'</a>

    and modify all three columns like the first one ($placeholder_image2, $placeholder_image3)

    Instead of “website.com” fill in the urls of the pages you want to link to (where the read more buttons link to). Please make this replacement for all three placeholders.

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Three Images on Display Home Page’ is closed to new replies.