How to properly enqueue jQuery knob on WordPress without conflict?

If you want to just enqueue a script by name then you have to register it first with wp_register_script: wp_register_script( ‘jquery-knob’, plugins_url( ‘assets/js/jquery.knob.min.js’, __FILE__ ), array( ‘jquery’ ), ‘1.2.11’ ); : wp_enqueue_script( ‘jquery-knob’ ); However that’s only really useful when you’re registering a script to be available as a dependency for other scripts, which I … Read more

Updated to wordpress 5.5.1 doesn’t work

Check the user currently set on the file permissions matches what is in apache2/httpd.conf. The part of httpd.conf that specifies the user is as follows and you’ll need to restart Apache after any changes. <IfModule unixd_module> # # If you wish httpd to run as a different user or group, you must run # httpd … Read more

Weird white space in admin area

Well that didn’t take long to figure out.. I’ve dealt with this before, but could never figure it out. Obfuscated code. Impulsively I deleted the directory, but they’ll be back. If you see these weird random PHP files, your site needs to be scrubbed and relaunched from backups. Preferably XML data files with no code. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)