Blog

Switching from PC to Mac

My cousin has recently convinced me to switch to Mac. A few factor’s went into the decision, but I’ll just give him all the credit to keep things simple. Plus he’d like knowing that I gave him credit. As a web developer it seemed like the right thing to do. The best in my field use macs. Ninety percent of the time I look up a tutorial, the screencast is… Full Post

Why you need git

This is going to be a rather short post that I will be sure to follow up with on a later date. I recently started a crash course with git to understand the true benefits of it and wanted to share with other developers out there who have not yet given it a try or are overwhelmed by what they find. I’m approaching this article sincerely from a novice viewport…. Full Post

Creating a simple frontend user search in WordPress

I recently had to create a custom user search in WordPress. My client’s website was having issues searching normally. I tried a plugin that allowed better searching but to no avail. Alas, I created a custom page template and wrote a custom script in php that searches the database. This code is very basic because it only checks first and last name, but not both. In that regard, it can… Full Post

Useful PHP functions to help you debug

There’s nothing like squashing a good bug. PHP offers some tools to help you along the way. One of those is print_r(). The function print_r() accepts two arguments. print_r( $var, $return=false ) $var is the element you want to print or echo with your script. This is particularly useful with objects and arrays. Let’s say you have the array $var, and you run print_r($var). The output might look something like… Full Post

Percentage minus pixels in responsive design

SASS and LESS users know just how easy it is to create a simple calculation in their CSS. One feature of both is the ability to perform operations, take for instance the following: .wrap nav .navitem { width: 900px / 3; } Which after compiling becomes: .wrap nav .navitem { width: 300px; } Pretty simple trick, although, this particular example is not very useful. I can’t be the only person… Full Post

JameelBokhari.com is now CodeAtLarge.com

There are several reasons for this. My name is not the most memorable, or at least easy to spell, and therefore made a bad domain name. In order to become a better online presence, this website needs branding. And with that, it firstly needs a good name. The name Code at Large works great. It’s simple and easy to remember. It has multiple meanings which all seem to fit in…

Awesome instant search 1.1.x

This page contains information on Awesome Instant Search 1.1.x, including the latest update 1.1.3. Awesome instant Search was recently updated to 1.1.x. This update adds Spanish translation as well as three new features: After Instant Results option, Minimum Screen Width option and Plugin Directory setting. Spanish Translation The spanish translations have been done by Maria Ramos who approached me unsolicited to translate the plugin (¡muchas gracias!). I had originally designed… Full Post

Website design for the new year

Welcome to the new design for jameelbokhari.com. I did some heavy lifting in the last two weeks to bring my website to level which reflects where I’m really at as a front-end web designer; I’ve learned a lot in the last year or so since creating the original theme, and the old website was, well, quite ugly. What’s new I’ve done as little as possible in the line of flair… Full Post

WordPress filters, the missing tutorial

The abstract I have often utilized actions and WordPress filters in my websites, but to be honest, I have never had the slightest clue what they really were or how they really worked. I just knew to copy a snippet I found online and I could figure out what to edit to make it work the way I wanted it to. After diving (head-first) into plugin development, I found out… Full Post

Filter shortcode in content

Frequently when developing for wordpress, we’ll want to have static content that can occasionally be edited. Rather than making custom posts or hard coding, the obvious choice is to use pages. I won’t go into detail on that but here’s a little snippet as an example.: <?php $post_id = 36; $queried_page = get_page($post_id); echo $queried_page->the_content; ?> The above code pulls content from a static page by using its ID, then echoes the content… Full Post