WordPress.org

Ready to get started?Download WordPress

Forums

Medicine
[resolved] slider effects not working (5 posts)

  1. ajas.jansher
    Member
    Posted 6 months ago #

    I cannot change the slider effects. It remains the same even after changing. Please help.

  2. LizardThemes
    Member
    Theme Author

    Posted 6 months ago #

    Hi!
    There is an option "Save Changes" at the top of the page Medicine --> Slider in the dashboard. Did you save changes after changing the effect for slider?

  3. ajas.jansher
    Member
    Posted 6 months ago #

    Yes..
    I change all the attributes like speed, delay etc and it works. But whenever I give effects, It doesnt works. Only the default effect is working.

  4. LizardThemes
    Member
    Theme Author

    Posted 6 months ago #

    Hi!
    Sorry for inconvenience. Please, replace the code:

    jQuery('.slides').cycle({
       delay:<?php echo $settings['slider']['delay']; ?>,
       speed:<?php echo $settings['slider']['speed']; ?>,
       next: '.slide-right',
       prev: '.slide-left',
       pager:  'slider-previews',
       pagerAnchorBuilder: function(idx, slide) {
        return '<img src="' + jQuery(slide).attr('src') + '" />';
       }
      });

    with:

    jQuery('.slides').cycle({
       fx:'<?php echo $settings['slider']['effect']; ?>',
       delay:<?php echo $settings['slider']['delay']; ?>,
       speed:<?php echo $settings['slider']['speed']; ?>,
       next: '.slide-right',
       prev: '.slide-left',
       pager:  'slider-previews',
       pagerAnchorBuilder: function(idx, slide) {
        return '<img src="' + jQuery(slide).attr('src') + '" />';
       }
      });
    in the file functions.php located in the directory of the theme.

  5. ajas.jansher
    Member
    Posted 6 months ago #

    Thank you very much...
    It's perfectly working now..

    By the way can I have custom effect? for that which all file should I modify?

Reply

You must log in to post.

About this Theme

About this Topic