M
M
Maxim Fursov2020-05-18 21:09:23
JavaScript
Maxim Fursov, 2020-05-18 21:09:23

Script stopped working after Wordpress update. What to do?

In general, after updating WordPress, the script on the page stopped running. Only the blinking cursor remained.

What could be the problem?

<script>
$(function(){
$(".typed").typed({
strings: ["сделать ваш бренд узнаваемым", "привлечь клиентов", "разработать уникальный дизайн", "увеличить продажи"],
// Optionally use an HTML element to grab strings from (must wrap each string in a <p>)
stringsElement: null,
// typing speed
typeSpeed: 30,
// time before typing starts
startDelay: 1200,
// backspacing speed
backSpeed: 20,
// time before backspacing
backDelay: 500,
// loop
loop: true,
// false = infinite
loopCount: false,
// show cursor
showCursor: false,
// character for cursor
cursorChar: "|",
// attribute to type (null == text)
attr: null,
// either html or text
contentType: 'html',
// call when done callback function
callback: function() {},
// starting callback function before each string
preStringTyped: function() {},
//callback for every typed string
onStringTyped: function() {},
// callback for reset
resetCallback: function() {}
});
});
</script>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2020-05-18
@Makyshin

Wrap the script like this

jQuery(function($) {
// ваш скрипт
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question