node.js allows you to run javascript in the Terminal as appose to a regular browser which makes for a modern workflow in web development, with node.js installed an associated package called npm (Node Package Manager) is also installed which can manage other applications that utilize node.js, one of the main ones being grunt.js. OSX Yosemite …
Read More
Import / Export a mysql database on the command line
To export a mysql database (as a dump) from the command line run: mysqldump database_name > database_exportname.sql To import a mysql database dump into a database: mysql database_name < database_exportname.sql To export all databases into a dump: mysqldump –all-databases > all_databases_export.sql To import one of these mysql databases from the dump into a database: mysql –one-database database_name < all_databases_export.sql
Find out how many database queries per pageload in WordPress
To find out how many WordPress mysql database queries a page requests and how long it takes the page to load whilst querying the database, you can add in a PHP function to a WordPress hook to find out. This can be displayed in either the source code of the html or rendered on the …
Read More
Fastest Way of Installing Drupal 7.26 on Mac OS X 10.9 , 10.8, 10.7
Fastest Way to install the latest Drupal 7 version on Mac OS X Mavericks 10.9 or 10.8 Drupal is a quality CMS application and is as simple or complex as your needs vary, it runs on the same foundations that Mac OS X Mavericks or Mountain Lion, Lion or Snow Leopard provides similar to …
Read More
Create a Footer Area with Left and Right Widgets in Genesis Child Theme
In the Sample Genesis Theme or a vanilla Child Theme, there is no actual Footer Widget Area, rather just a credit & copyright line with links. This is how to create a new footer area with a left and right widgets, these code snippets need to be added to the child theme functions.php file …
Read More
Make a Read More Link with Dashicons for Posts in Genesis Child Theme
By default in a Genesis Child and any WordPress theme the ‘read more‘ link in a post is not a link and is an ellipse surrounded by square brackets[…] There is a WordPress filter that allows this to be changed called excerpt_more, a function needs to be created and then passed into that filter. This …
Read More
Create a PreHeader Full Width Wrap Bar in Genesis Theme
If you have a layout that requires a pre-header full content wrap that needs to have elements such as an optin form and member or social media menu, you can add a widget area in a Genesis child theme just above the main header area that contains any content you need with the ability to …
Read More
Use FontAwesome Icons in WordPress Visual Editor without Disappearing
If you use FontAwesome icons in your work and use them inside WordPress visual editor and swap between text and visual mode – the icons get stripped out. Not good. Disable Visual Editor Couple of solutions to deal with this, one is to use a plugin called Disable Visual Editor which you can simply disable …
Read More