Your Time:
Our Time:
← Back to discussions

Slider height

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 4 replies, 4 voices, and was last updated 8 years, 10 months ago by Alvis002.

Tagged: 

  • 2014-03-18 at 7:43 pm
    Support Expired
    #3430
    webunie
    Participant
    • Topics: 2
    • Replies: 10
    • Total posts: 12
    • Post count: 10

    Where or how can you change the height of the slider?

    2014-03-18 at 8:53 pm
    #3431
    Wajid Khan
    Keymaster
    • Topics: 5
    • Replies: 1543
    • Total posts: 1548
    • Post count: 1876

    Hi @webunie,

    If you are using Flex Slider you can change height in theme/slider/flex-slider.php find echo atp_resize($post->ID,”,’1000′,’400′,”,”) where 400 is the default height.

    2017-11-08 at 8:48 pm
    Support Expired
    #22192
    Alvis002
    Participant
    • Topics: 4
    • Replies: 5
    • Total posts: 9
    • Post count: 6

    I tried what you said but all I see is this.

    
    if( get_option('atp_layoutoption') == "stretched"){ $width='1920'; $height = '600'; }else{ $width='1000'; $height = '500';}
    
    			$postlinktype_options = get_post_meta($post->ID, "postlinktype_options", true);
    			$postlinkurl          = atp_generator('atp_getPostLinkURL',$postlinktype_options);
    			$img_alt_title 		= get_the_title();
    			$slidercaption        = get_post_meta($post->ID, "slidercaption",true);
    			echo'<li>';
    			if ( $postlinkurl != 'nolink' ) {
    			 echo'<a href="'.$postlinkurl.'">';
    			}
    			echo atp_resize($post->ID,'',$width,$height,'',$img_alt_title);
    			if ( $postlinkurl != 'nolink' ) {
    				echo '</a>'; 
    
    

    Any idea how to change the slider height?

    • This reply was modified 8 years, 10 months ago by Fem.
    2017-11-10 at 2:34 pm
    #22208
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    In the following place change your desired height

    atp_resize($post->ID,'',$width,$height,'',$img_alt_title);
    Modified Code with height 500 pixels
    atp_resize($post->ID,'',$width,'500','',$img_alt_title);

    2017-11-10 at 5:02 pm
    Support Expired
    #22212
    Alvis002
    Participant
    • Topics: 4
    • Replies: 5
    • Total posts: 9
    • Post count: 6

    I did it! Thanks a lot!

You must be logged in to reply to this topic.