How to stop Portrait Images being truncated using jQuery Cycle Lite Code
I am using the following
Wordpress 3.1.1 with Nextgen Gallery and the JQuery Cycle Lite plugin.
I have downloaded the latest version of the Cycle Lite Plug in from http://jquery.malsup.com/cycle/lite/
The problem I have is the Gallery I am using has some portrait images in and although I have fit set they are being chopped off rather than shrunk. See http://www.rjt.org.uk/home/testlocation1
I am using [jj-ngg-jquery-cycle html_id="about-cycle-lite" gallery="7" width="400" height="600" fit="0" center="1"] in Wordpress.
I suspect the problem is with the following section, but am not sure how to fix it.
$slides.each(function() {
var $el = $(this);
this.cycleH = (opts.fit && opts.height) ? opts.height : $el.height();
this.cycleW = (opts.fit && opts.width) ? opts.width : $el.width();
});
Suggestions please.
Solutions
Your example page has an exception:
jQuery("div#about-cycle-lite").jjcycle is not a function
I've created a working jsFiddle but all the images are the same size in your example there are none taller.
Similar questions
JQuery Cycle plugin displaying the wrong images
Oh great forum, Please help!! I am having a problem with the basic JQuery Cycle plugin where I have defined classes for 3 indevidual divs inside a parent/wrapper div. Each div has 3 images inside which are specific to their respective parents. The problem is that the JQuery Cycle plugin is displaying the images in the wrong divs!! It would be great...
jQuery Cycle Images Do Not Show Up
I'm trying to use jQuery Cycle plugin. One of the problems I'm having is that after the first image loads, the rest of the images don't show up even though they are there. When I inspect the element, it says the width of the image is 1px and height is 33px. I'm using Wordpress. I'd appreciate your help. This is in my page.php And CSS
Using the_excerpt() some posts are truncated and some are not
I have a template that pulls three posts query_posts() loop. Two of the posts and are truncated to 10 words like I have it set in a filter. The third decided to ignore the filter and is spitting out 33 words. I can't see a difference between the posts. Does anybody know why this would happen?
Jquery cycle plug with wordpress, jquery is not defined?
I am very new to wordpress and I am baffled. I am trying to create a slide show and have followed all the directions I can find for adding jquery to wordpress. In my function.php file I have added: In my header.php I have: My slideshow.js is: and in my template I have: When I'm trying to run the slideshow I am getting a "jquery is not defined" erro...
Slick Slider using landscape and portrait
I have created a slider with Wordpress that needs to return variable image counts based on whether the image is landscape or portrait. So what I did was to get Wordpress to retrieve the image dimensions and then based on the image orientation to assign a class to the post. I then used the class to pair all the divs that are portrait into the same c...
Also ask