WordPress.org

Ready to get started?Download WordPress

Forums

Nivo Slider for WordPress
Problems with images bigger than 999px (4 posts)

  1. Zbyšek Podhrázský
    Member
    Posted 2 years ago #

    I tried to use Nivo slider as a header image slider for my new project. The problem is, when I use plugin interface to upload new image. Always, when I set up the size of the slider bigger than 999px in width (I need 1200x337), the image is uploaded in very bad quality (seems to be resampled or set to bad quality).

    Any tips? Thanks.

    http://wordpress.org/extend/plugins/nivo-slider-for-wordpress/

  2. aaron.lane
    Member
    Posted 2 years ago #

    Zbych,

    I encountered the same problem and found a temporary solution:

    1. Open the following file:
    /plugins/nivo-slider-for-wordpress/nivoslider4wp-panel.php

    2. Lines 121, 122, and 123 contain the value "1000". This IF statement is checking the width in pixels of the original image and executing functions based on this information. Change the "1000" to a value larger than the biggest image you would like to use in your slideshow. (For example, I'm using images 1280x984 in my slider, so I changed "1000" to "2000" just to be safe). Make sure you change all 3 instances of "1000".

    I'm not a js / php expert, but the code seems to written in a way to keep the "cropping image" and the preview image in the wp-admin area to a certain width for screen viewing purposes (at least, that's how it should work). However, when an image > 1000px is used in the slider, the code breaks down.

    Let me know how it turns out.

    Cheers,
    Aaron

  3. GnosticGirl
    Member
    Posted 2 years ago #

    Hey Zbych and Arron,

    How did you make the slider your header image? I'm trying to figure that out for my site and any guidance would be very much appreciated :)

    Thanks,
    Amy

  4. aaron.lane
    Member
    Posted 2 years ago #

    Amy,

    Instructions for placing the slider in your theme are found on the plugin homepage.

    Place the following code wherever you'd like the slider to appear in your theme:

    <?php if (function_exists('nivoslider4wp_show')) { nivoslider4wp_show(); } ?>

    We have our placed on the homepage of the website, so we added the code to home.php

    Cheers,
    Aaron

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic