Search Result for: Development Category

Articles

Undo GIT Add

If you would like to un-stage a file that you have just added in git simply use this
Read More

GIT Ignore file with specific extension

If you want to ignore a file with a specific extension that is not essential to your project simply add it to the .gitignore
Read More

Git Reset HEAD

Use with caution, once used these commands you will not be able to come back from the
Read More

Identifying template name in functions.php file

Main reason for using this function is to load .js scripts only on pages required via the functions.php
Read More

Setting up a Google Maps display with custom CSS and disabling zoom control

Required Javascript links: <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=API_KEY"></script> If you are developing locally try using :
Read More

Deleted files still existing in GIT ?

If you have deleted files and then committed the folder the file is in, and surprised to see that the commit has not taken the delete you have just done? Run this command instead
Read More

Checking website speeds

On your Mac Terminal window: time curl your website URL > /dev/null If your SSH’d into the website: time wget your website URL Note: some of these commands may create a
Read More

Reset the Remote Repo to match your local repo after a bad merge

If you have merged in code from a Fork and wanted to undo the merge. Please follow the following steps. Reset your local repo ( this will rollback the head by 2 commits) git reset
Read More

Credit card testing numbers

Can be used when application or module is in testing mode. Credit Card Type Credit Card Number American Express 378282246310005 American Express 371449635398431 American Express
Read More