WordPress admin bar not showing on front end for custom theme

Some custom wordpress theme doesn’t show the admin bar into the theme page same with the wp_head() and the wp_footer() wrote on the templates files. To resolve that problem just add the following code into your function.php or into your own plugin: function admin_bar(){ if(is_user_logged_in()){ add_filter( ‘show_admin_bar’, ‘__return_true’ , 1000 ); } } add_action(‘init’, ‘admin_bar’ […]

Creating a Bootable Ubuntu USB Drive, for PC, on a Mac

Tried UNetbootin but didn’t work out! Command Line saved the day yet one more time. Steps: Download Ubuntu ISO Convert the Downloaded File Format hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso Determine the Device Node for the USB Drive diskutil list Unmount the USB diskutil unmountDisk /dev/diskN Create the Bootable USB Drive sudo dd if=/path/to/ubuntu-14.04-desktop-i386.dmg […]

How to fix PHP.INI that is not updating in an apache mac setup

If you issue the following command in terminal: php –i | grep ini This will show you the loaded pho configuration file. My output was this: Loaded Configuration File:         /usr/local/etc/php/5.6/php.ini But when I upgraded my MacOS from El Capitan to Sierra, updating the above file didn’t reflect any change on my development […]