开发者

jQuery Cycle Plugin pager adding extra numbers, but no slides

Built a theme in HTML/CSS and customized a the cycle plugin to be a gallery with pagination. W开发者_开发百科orked perfect, now turning the theme into wordpress, and the pager is adding extra numbers, like blank slide between each image. Anyone seen this before?


You can also use the 'slideExpr' option to specify which elements should be used as slides.

http://jquery.malsup.com/cycle/slideExpr.html


Solved it, odd. Was wordpress issue where it was adding in break ( <br />) tags automatically. Not helpful lol. If it happens to you, try adding this to the top of your template file,

<?php remove_filter ('the_content',  'wpautop'); ?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜