• Resolved Stephane

    (@passimal)


    Hello,
    In themes options and slider options tab I ve put “Category post as slider”
    And I choose “general” for category

    When I upload img to feautured to see in slider the thumbail is not good (1900*550) the size is tha original img…
    I ve the code to create new thumbail :
    add_image_size( 'slider-thumbnail', '1900', '550', true );
    but I dont know where i can put it

    Can someone help me ?

    Thanks a lot ….

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Pessimal!

    You need to add this code on your functions.php file in the theme folder. Take a look at this page to get more info about it:

    http://codex.wordpress.org/Function_Reference/add_image_size

    Hope it helps.

    Thread Starter Stephane

    (@passimal)

    hello , thank you very much 😉
    but
    Yes I know it but for the slider the size of image is full
    I find it in the extras.php file in line 399 :

    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full', false );

    I think i must change here but i dont know how…

    ( I use this plugin “Simple Image Sizes” to create thumbail images…)

    If somenone or author …

    Thread Starter Stephane

    (@passimal)

    Hello ,
    I find it …

    It not a line 399 but in next “if”

    at line 430

    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'slider-thumbnail', false );

    ( I had two mistakes !)
    SO is ok now … I can use special thumbail in my slider post !

    Thread Starter Stephane

    (@passimal)

    Re, I ve customized my code and do this :

    in line 431 :
    $url = get_permalink();

    and in line 436 :
    <a href="<?php echo $url; ?>"><img src="<?php echo $image[0]; ?>"></a>

    and now when i click to the slider … th post open

    Best theme

    Best regards ,

    @Steflp

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

The topic ‘slider in 1900 *550’ is closed to new replies.