.2 Create new VS Code web project

Create the workspace This is the approach we use, to ensure that the .vscode folder with config settings, sftp logging details, etc is not part of the httpdocs\ (or similar) folder that is published on the web server. In VS Code open the folder that CONTAINS your local ‘httpdocs\’ (or whatever you call it) folder […]

Read More

Styling admin view

Creating a stylesheet that will be used when viewing the site admin side (e.g. editing a post) In functions.php: Create a file called style-admin.css and store in your theme’s root folder (along with style.css).Some example content:

Read More

SFTP by Natizyskunk

For which extensions we install see here. Documentation https://github.com/Natizyskunk/vscode-sftp/wiki Setup keyboard shortcuts VSCode > File > Preferences > Keyboard Shortcuts > SFTP: Upload Active File > Add shortcut: CTRL+SHIFT+U Configure new connection Ctrl+Shift+P to open command palette > SFTP: config A basic configuration file will be created named sftp.json under the .vscode directory. Edit with […]

Read More

debug.log file

Enabling the debug.log file Edit the wp-config.php file: You’ll now get the same output, but written to the file instead of shown to users at the top of the page. Viewing the file This file will be written in: /wp-content/ directory Open this file using SSH or your FTP client to view the debug reports.

Read More