• Resolved jenmatt

    (@jenmatt)


    Hi,

    What are the image dimensions for slider images? The images I have used are cut off etc.

    Thanks

Viewing 15 replies - 16 through 30 (of 60 total)
  • By this do you mean “Slider Layout : set the slider in full width”?

    Yes, but what I’ve found is if I change it on page nothing happens for some reason. If you uncheck the box in the Custom- Cutomizr Settings > Front Page > SLIDER OPTIONS > Full Width slider > uncheck this seems to work.

    Hope that helps

    It worked! Thanks so much! I would have never figured that out on my own. ??

    hi i’m having problem with slider too. i want the full width slider. i used this tool to get the right ratio https://andrew.hedges.name/experiments/aspect_ratio/ so i put in 1200 / 500 and in the next row i put in the width of my photo 1024 and so it gave me the height 427.

    …thing is, yes its a smaller pixel (the original photo i have ) but i have done the same ratio… so why is it just cropping it anyway.

    i tried the non-full width slider and it still crops my photo..showing more sky when i saved it as showing more rock… but i want the full width slider and of course want it to show what i cropped and saved.

    please advise.

    mindyou..

    what is the ratio / pixels for full width slider ? and
    what is the ratio / pixels for non-full width slider ?

    i reloaded one of the photos to the slider, recropped it etc etc and still the slider is showing a whole bunch in the photo that i cropped out. it doesnt make sense at all…at all.

    and i have refreshed and all that.

    is it a customizr glitch?? is there any other theme that would be better?

    breathing out.. ??

    ok im going to start again and take the advice of nikeo and base the ratio on 1170 x 500 px. here goes..

    NOPE, doesnt make a blind bit of difference! still showing a load of sky i had cropped out ( reloaded image . cropped and all to the tee) . i did the ratio right and still all…. i will refrain from using extra words to express meself here.

    This the front page of my website im building https://joanwalsh.ie/ please look at the slider and the extra photo i posted that is the one uploaded to slider) on the page. correct ratio. unresolved for me. thanks

    Theme Author presscustomizr

    (@nikeo)

    Hi Joanwalsh,
    I am working on a fix. I come back to you.
    Regards,
    Nicolas

    oh thanks a million Nikeo ?? you’re a star.

    Theme Author presscustomizr

    (@nikeo)

    OK joanwalsh,

    I have made a patch that automatically centers your picture in sliders so that it will not seems to be cropped on any device.

    Here is what I can do. Copy the following code at the very bottom of your functions file (if you are not using a child theme, go in admin and use appearance > editor) :

    add_action ('wp_footer','tc_slider_adjust' );
    
    function tc_slider_adjust() {
    	global $wp_query;
    	$queried_id                   = get_queried_object_id();
    	$queried_id                   = ( !tc__f('__is_home') && $wp_query -> is_posts_page && !empty($queried_id) ) ?  $queried_id : get_the_ID();
    	$slider_active                = esc_attr(get_post_meta( $queried_id, $key = 'post_slider_check_key' , $single = true ));
    	if ( tc__f('__is_home') && tc__f('__get_option','tc_front_slider') !=null) {
    	    $slider_active            = true;
    	}
    	if(!$slider_active) {
    		return;
    	}
    	?>
    	<script type='text/javascript'>
    		jQuery(document).ready(function() {
    			!function ( $) {
    				var imgNbr = 0;
    				$(".item img").each(function(index, value) {
    					imgNbr++;
    				});
    
    				//adjustments counter
    				var count = 0;
    				//alert(ImgSrc);
    				function adjust() {
    					var HeightSliderContainer = jQuery('.carousel-inner').height();
    					var ImgHeight = jQuery('.item.active img').height();
    					var Adjustment = Math.ceil((ImgHeight-HeightSliderContainer)/2);
    					if (Adjustment > 0) {
    						$('.item.active img').css('top', -Adjustment + 'px');
    						$('.item.active img').css('position','relative');
    						count++;
    						var ImgSrc = $('.item.active img').attr('src');
    					}
    				}//end of adjust function
    				<?php
    				//we retrieve the carousel value
    					$delay_value    = tc__f( '__get_option' , 'tc_slider_delay' );
    				?>
    			    var delta = Math.ceil(<?php echo $delay_value ?>)/2;
    			    var adjustinterval = setInterval(adjust, delta);
    			}(window.jQuery);
    		});
    	</script>
    	<?php
    }

    Then open the customizer panel and copy / paste the following code in the custom CSS section :

    img {
        -moz-transition: all 0.5s ease-in-out, left 0.7s ease-in-out, right 0.7s ease-in-out;
        -webkit-transition: all 0.5s ease-in-out, left 0.7s ease-in-out, right 0.7s ease-in-out;
        -moz-transition: all 0.5s ease-in-out, left 0.7s ease-in-out, right 0.7s ease-in-out;
        -o-transition: all 0.5s ease-in-out, left 0.7s ease-in-out, right 0.7s ease-in-out;
        transition: all 0.5s ease-in-out, left 0.7s ease-in-out, right 0.7s ease-in-out;
    }

    This should be it.
    Hope this helps and I look forward for your feedback!

    oh thanks, i am going to copy the 1st code into the very bottom of the box ( i hope that is correct ) .. titled “Customizr: Stylesheet (style.css)”

    do you mean i copy and paste the above code and paste it below where it says “…..IMPORTANT : If you write your CSS code below, it will be deleted when you update the theme.
    If you want to personnalize the css of Customizr, use the Custom CSS section in the Customizer screen OR create a child theme a add your css code in the style.css file.
    */ “

    ***and paste it here*** yes? and then click ‘update button’, yes ?

    (and then i closed that and continue to the next step in the other area you mention)

    ok 1st step DONE ??

    ok 2nd step done.

    and now also updating customizr theme.

    the photo is still the same as before i did these steps, i’m afraid. no change. and i refreshed it and all, and took off slider, added back on slider.

    the photo is still a cropped version (in the slider) of the one that is in/saved on the file (like the one i posted on the front page)

Viewing 15 replies - 16 through 30 (of 60 total)
  • The topic ‘Slider Image Size’ is closed to new replies.