.htaccess file changes disappear

I was having a similar problem recently. It turned out it was due to a code injection in the /wp-includes/nav-menus.php file. There was a Base64 malware code injected that was causing my .htacess file to chmod itself to 444. Something called some kind of darkleech malware. See this link for more, maybe it’s what’s happening … Read more

Ajax call URL 404’ing when pushed to staging server

Take a look at wp localize script. It’ll allow you to encode your url into a separate javascript object before your script is loaded. get_template_directory retrieves the absolute path to the directory of the current theme. Use it in case your WP install directory is different than your local development. The theme directory can also … Read more

Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge

So turns out that on Safari and Firefox, the page would refresh before the email got sent out. As a workaround I just created another button that the user has to click on before clicking on the actual button that updates their profile information. The click event handler on that first button is being used … Read more

Setting up WordPress client and server

The easiest way to do this is this… Install a PWA plugin. Here is a free one… (No Pro Needed) https://superpwa.com/ Now, if you want to make it onto the Stores, you will want to write a wrapper (or buy one). There are many options for this, but they tend to be custom. A cordova … Read more

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