This guide shows a Git and WordPress workflow and demonstrates version control using Git from a local development environment on OSX to a live production webserver which is a cPanel server running on CentOS. CentOS cPanel comes with Git and you can do an easy install for OSX. Set up SSH (no passwords) A key requisite for this is …
Read More
Stop video playing when Bootstrap modal is closed
Using ScrollNav to control long documents in WordPress
Controlling long document display on a web page can be greatly enhanced with a Javascript solution like ScrollNav which collates all of a defined HTML element in a document like a heading tag such as a h2, puts all of the elements set up in a navigation markup done for you and keeps the links to the relevant …
Read More
Optimise and streamline your CSS style code with CSScomb
You can really optimize and streamline your CSS code with a great application called CSScomb. It can also help identify errors, similar to the excellent CSS Lint which does error checking and style/selector suggestion. However where CSScomb comes into its own is the presentational and efficiency aspect of CSS style coding. CSScomb features include sorting your CSS …
Read More
How to check for CSS errors in your stylesheet with CSSlint
You’ve worked long and hard and slaved over your masterpiece but the CSS styles you wrote are just not being applied to your HTML, how can you check that the CSS syntax and formatting is correct? CSS Lint can do this for you. Got to the site and paste in your CSS. You can refine …
Read More
Installing NodeJS on Command Line for Cent OS and cPanel
Most cPanel servers use Cent OS as their preferred operating system, as long as you have a VPS or dedicated server with root SSH access you can install NodeJS and npm (Node Package Manager) as a root user and allow other cPanel domain users to run node and install node packages in their local directory. Dependency …
Read More
Add Extra WordPress Development Sites to VVV Varying Vagrants
Vagrant and WordPress Local Development Vagrant – Getting Started on OSX Vagrant and WordPress – VVV Set Up Vagrant and WordPress – Adding Multiple Sites with VVV Site Wizard Vagrant and WordPress – Adding Multiple Sites with Variable VVV Vagrant and WordPress – Easy Admin Page Once you have Vagrant and VVV Varying Vagrant Vagrants up and running by default there are these following …
Read More
Up and running with wp-cli for WordPress on Mac OSX
WordPress has a command line tool which operates similar to what Drush does for Drupal, it is called wp-cli and runs on OSX/Linux operating systems with a minimum of PHP 5.3.2 or later and WordPress 3.5.2. Install wp-cli on OSX curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar Make it executable chmod +x wp-cli.phar Move it into your Path mv wp-cli.phar /usr/local/bin/wp In the above …
Read More