How to change only one javascript function in wordpress child theme?

I would like to change just one JavaScript function in the child theme but without having to insert all the JavaScript c

I would like to change just one JavaScript function in the child theme but without having to insert all the JavaScript code of the parent theme.

How do I change only this function (I need change only count = Math.ceil(width / size) line):

function slickAutoResponsive(slider, max, size) {

  if (!max){
    max = 5;
  }
  if (!size){
    size = 380;
  }

  var width = slider.width(),
    count = Math.ceil(width / size);

  if (count < 1) count = 1;
  if (count > max) count = max;

  return count;
}

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742385363a4433948.html

相关推荐

  • How to change only one javascript function in wordpress child theme?

    I would like to change just one JavaScript function in the child theme but without having to insert all the JavaScript c

    2天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信