Slider with right gray column

Front page Support Forums Sensei Theme Support Slider with right gray column

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by  micrem73 2 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6972

    micrem73
    Member

    By adding:

    #header-image #rps img {
    width: auto;
    height: 376px;
    margin-top:-20px;
    margin-left:-20px;
    }

    code in “custom css” field of Appearance -Z Recent Pot Slider menu, i got a slider like the one in the screenshot: https://dl.dropboxusercontent.com/u/6974/header.jpg , with a grey right column instead of the default bottom gray row.
    The only problem is that the image looks pixellated. How can i solve it?

    #6974

    satori
    Member

    Hey Michelle,

    the height of the Recent Posts Slider is fixed at 226px, which is why the image will become pixelated if its height is changed via CSS. You’d need to increase the image height in the “/includes/recent-posts-slider/recent-posts-slider.php” file, in the function “rps_post_img_thumb()” in order to get the slider to use a larger image.

    Sincerely,
    Andrii / Satori Studio

    #6977

    micrem73
    Member

    dear,
    thanks for your prompt reply.
    I tried your suggestion, but still the image is pixellated. I also tried uploading a new image after the modify, with no success.
    regards
    michele

    #6979

    micrem73
    Member

    For what i can understand, it shows in the slider the thumbnail resized in bigger size – this genertaes the pixels – instead of reducing the original media to the desidered size.

    #6985

    satori
    Member

    Hey Michele,

    line 146 of the “recent-posts-slider.php” file I’ve mentioned above says:

    $img_details = wp_get_attachment_image_src( get_post_thumbnail_id( $val_p['post_ID'] ), 'full' );

    which implies that the image being taken is the full version of the image. Could you please describe which amendments you’ve made to the “recent-posts-slider.php” file and how you added the post image that currently seems pixelated? Thanks!

    Sincerely,
    Andrii / Satori Studio

    #6986

    micrem73
    Member

    Hi dear,

    thanks for your support.

    There are some things I can’t understand:
    – in “/includes/recent-posts-slider/recent-posts-slider.php” there is no “rps_post_img_thumb()” function – you wrote i had to change the fixed 226px size there. I found instead a rps_show() function with a 226px set. Did you mean that function? However even changing it has no effect
    – the mentioned file is the original anyway, i didn’t change anything and also reset the size to 226 in rps_show() after testing it.
    – i added the post image simply by the media uploader of the site backend.

    regards
    michele

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

You must be logged in to reply to this topic.