Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6984

    Hi there,

    I have edited the index.php file with 3 new heading for the placeholder text I want to use on the home page (one for each column). I saw the original index.php file was commented out slightly for the images so I copied your code in from a previous post to correct this.

    The heading and body copy are different for each column however the same image is repeated for each one. In the file it clearly shows that 3 different images are being called. However, in this case only medium1.jpg is being displayed. I replaced the original images of the template with new ones of the same name and path.

    Here is part of the index.php file in use. I am putting the site together as we speak so to see problem visit http://www.greyintelligence.com and look on home page.to same the image repeat.

    I look forward to your reply.

    Thanks,

    Chris

    $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>Continuously protect your personal data online</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_image1.'<h3>Establish and promote your own online presence</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_image1.'<h3>Eliminate unwanted links from top Google results</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‘;

    //call class

    $boxes = new kclass_display_box(‘mainpage’,’mainpage_column’,’Mainpage Column’, $placeholder);

    $boxes-> prev_image(array(‘height’=>’124′,’width’=>’280′));

    $boxes-> display();

    ?>

    </div><!–end main–>

    #56156

    Any chance for a speedy reply? Thanks. Chris

    #56157

    Hey,

    in index.php replace:

    $placeholder[2] = $placeholder_image1

    with:

    $placeholder[2] = $placeholder_image1

    and:

    $placeholder[3] = $placeholder_image1

    with:

    $placeholder[3] = $placeholder_image3

    #56158

    Fantastic! All done. Thansk for your help.

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

The topic ‘Repeat images appearing on home page under slider’ is closed to new replies.