Add a WordPress admin user using PHPMyAdmin

  |   By  |  0 Comments

Just once in a while, you can’t get into the WordPress dashboard and you need to create a new admin user quickly. You can do it with PHPMyAdmin. Login to PHPMyadmin Goto your WordPress Database table and click on SQL. Then copy and paste the MySQL statements below. Change YOUR USERNAME, PASSWORD, Your Username and […]

Continue reading...

Testing dark mode for cordova and websites

  |   By  |  0 Comments

In the Google Chrome Browser Open Developer tools with right click and “Inspect” Open the Command Control: <ctrl><shift><p> (Windows) or <cmd><shift><p> Type “Show rendering” Set the Emulate CSS media feature prefers-color-scheme to the value you want to debug While you are here, have some CSS…

Continue reading...

Javascript – detect what type of mobile

  |   By  |  0 Comments

For one of my apps, I have a landing page website – ourchurchapp.online, that detects if a mobile phone or tablet has accessed it and redirects to the correct app store. I use a javascript function to detect iOS, Android, Windows and Amazon – although Windows doesn’t go anywhere – so few people use it […]

Continue reading...

Preparing Gutenberg blocks for an email

  |   By  |  0 Comments

If you need to send a post or page out via email, you will need to parse blocks and shortcodes first. I use MailChimp and the API doesn’t like audio and video tags. This function takes the post content and parses it creating buttons for playing audio and video. In the switch($block[‘blockName’]) you can add […]

Continue reading...

Weird characters appearing on WordPress posts

  |   By  |  0 Comments

If weird characters suddenly appear on your blog posts and pages. Don’t panic. You may see Don’t instead of Don’t for instance. This can happen when a database is restored or updated because the character set has been changed Here are some common examples… “ = left quote = “” = right quote = ” […]

Continue reading...