Hi,
Im having problems with the load time of my home page. My photos are uploaded at about 20kb, yet chrome is showing it loading it 80 - 100 kb. My photos are the perfect dimensions for the home slider so is there anyway to edit the code to turn off the TimThumb script from processing my home slider? This is for the Awake theme. Other than this Awake rocks!
Thanks!
Disabling TimThumb for the home slider.
(2 posts)
(2 voices)
-
Posted 1 year ago #
-
Hello imran2010,
The resize script will create cropped copies and it will cache them so it should be saving you file space and bandwidth. I do not recommend disabling it but if you still want too then open up
/wp-content/themes/awake/lib/functions/sliders.phpand around line 64 you should see this..if($$slider_link){ $out .= '<div class="positioning"><a class="load_slider_img" href="' .$$slider_link. '"><span class="rm_slider_img"><img alt="" class="single_slide_image" src="' .$img_resize. '" /></span></a></div>'; }else{ $out .= '<div class="positioning load_slider_img"><span class="rm_slider_img"><img alt="" class="single_slide_image" src="' .$img_resize. '" /></span></div>';Go ahead and change it like this..
if($$slider_link){ $out .= '<div class="positioning"><a class="load_slider_img" href="' .$$slider_link. '"><span class="rm_slider_img"><img alt="" class="single_slide_image" src="' .$$slider_img. '" /></span></a></div>'; }else{ $out .= '<div class="positioning load_slider_img"><span class="rm_slider_img"><img alt="" class="single_slide_image" src="' .$$slider_img. '" /></span></div>';This will turn it off if you have your slider set to normal. If you have a tabbed slider or have your slider grabbing images from a category then you need to scroll down in that file and make the same change on lines 183.
Let us know if this helps imran2010.
Posted 1 year ago #
Reply
You must log in to post.













