How to add an empty directory to a git repository

1. Create .gitignore file inside an empty folder. 2. Insert the following code inside .gitignore file. # Ignore everything in this directory * # Except this file !.gitignore Optional: If you’re using Netbeans and by default all system core files are being ignored to prevent uploading to repo for security purposes. To include them in the repo you[…]

Modify WordPress Footer Using Child Themes

Assuming you have created a child theme inside your main wordpress templates. If not, Here’s How to create a child theme. 1. Copy footer.php from your main templates to your child-theme folder. 2. Edit footer.php and find the following code: <?php do_action( ‘twentythirteen_credits’ ); ?> <a href=”<?php echo esc_url( __( ‘http://wordpress.org/’, ‘twentythirteen’ ) ); ?>” title=”<?php[…]

How to Open Applications With Root Privileges on a Mac

Editing a protected configuration file is restricted by default so it is necessary to open applications with root privileges. In order to do that, we need to open “Terminal” and open applications using sudo command. 1. Open Terminal. Shortcuts to open Terminal using: Command + Space Bar then type “Terminal” Command + Shift + U[…]