Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5465

    Hi,

    Can I increase the height of the slideshow window on the homepage so that I can display images that are 850 x 567 instead of 850 x 400?

    Thanks,

    Mat

    #50398

    Hey,

    open up style.css and add following code:

    #top.home div .slideshowBig{
    height: 567px;
    }

    and adjust the height value. Afterwards open up functons.php and define a new image size. Replace:

    $k_option = array(‘width’=>850, ‘height’=>400); // big images for fullsize pages and mainpage slider

    with:

    $k_option['custom']['imgSize']['XL'] = array('width'=>850, 'height'=>400);		// big images for fullsize pages and mainpage slider
    $k_option['custom']['imgSize']['XXL'] = array('width'=>850, 'height'=>400); // big images for homepage

    and adjust the height value of the second entry (XXL) accordingly. At least open up display_featured_media.php

    and replace:

    else
    {
    //get full sized preview image for the first post, inject it before the actual post so it displays above the sidebar as well
    $big_prev_image =kriesi_featured_images($post->ID,
    array( 'size'=> 'XL',
    'link' => $linking_behaviour,
    'ul_attr'=>array('class'=>'slideshow slideshowBig featured_container'.$counter)
    ));
    }

    with:

    else if(is_home())
    {
    //get full sized preview image for the first post, inject it before the actual post so it displays above the sidebar as well
    $big_prev_image =kriesi_featured_images($post->ID,
    array( 'size'=> 'XXL',
    'link' => $linking_behaviour,
    'ul_attr'=>array('class'=>'slideshow slideshowBig featured_container'.$counter)
    ));
    }else{
    //get full sized preview image for the first post, inject it before the actual post so it displays above the sidebar as well
    $big_prev_image =kriesi_featured_images($post->ID,
    array( 'size'=> 'XL',
    'link' => $linking_behaviour,
    'ul_attr'=>array('class'=>'slideshow slideshowBig featured_container'.$counter)
    ));
    }

    #50399

    Hi,

    I have just tried to do this and its not really working. Can you help please?

    http://lollypopphoto.com/

    Laura

    #50400

    I missed a step :)

    Please regenerate the thumbnails with: http://wordpress.org/extend/plugins/regenerate-thumbnails/

    #50401

    Thanks for your guidance. I have followed your instructions by accessing the web routea problem however. I have this message which has appeared >>

    Parse error: syntax error, unexpected T_ELSE in /data03/substanc/public_html/wp-content/themes/habitat/display_featured_media.php on line 51 ???

    Can you help, my site is down as a result. Cheers.

    #50402

    I think I have managed to correct the problem. However, despite having followed all the instructions, the image is still displaying at 800 x 400 and not 850 x 567 – http://www.substancephotography.co.uk

    Anything I have missed?

    #50403

    Hi. I know you’re busy but if you could spare a few minutes to help me correct this problem. The images are still not displaying at 850 x 567. Not sure why. I have followed all instructions.

    Cheers.

    P.S. Sorry about the capitals in the heading, I do it just so I can more easily find my replies.

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

The topic ‘HOMEPAGE SLIDESHOW DIMENSIONS – CUSTOMIZABLE?’ is closed to new replies.