Convert XML to json and then a PHP array (you go via json even if you just want the PHP array)
All posts by
simpleXML
Is simpleXML installed? It should be there by default with php, but it seems to be omitted in some installs (e.g. V7 PHP on ubuntu) Read values For example, this XML file: Reading a value: Read XML to array example Write XML File
.SEO basics
Things to work on for SEO Page load speed Critical for good SEO ranking. Use tools to measure your page speed and optimise as needed. Good tools to analyse this: Google’s Page Speed Insights GTmetrix Dareboost Site structure Can be important for optimising SEO Web Vitals https://web.dev/vitals/ Page Experience Google Search Console reports directly on […]
Debugging CSS
Best CSS layout debugger trick out there
Useful hooks – In page
See the child themes section here.
Bold
Color
CSS File Paths
Images referenced in CSS files These are referenced from the locoation of the CSS file itself (not the website site root)
Nested CSS identifiers
Examples
.1 Set up VS Code for web development
How To Set Up Visual Studio Code (VS Code) for PHP Development | DigitalOcean VS Code Options Our general settings for VS Code – see here Web development specific settings Use CTRL+SHIFT+P and then enter “Open User Settings (JSON)” to open the raw json file. Check it has the following: Extensions PHP Intelephense by Ben Mewburn […]