Set navigation menu inside WordPress Appearance > Menus

Web Developers Corner

Web Developers Corner A site for developers and designers

Over 785.000 websites were down due to an system wide network issue with CloudFlare

Today (March 3rd 2013) I noticed my webpage was suddenly down, of course I thought the problem was on my server, especially since I just updated some things on it. I couldn’t find anything out of the order, and I checked some of the other sites I run on the server, they were ok. Then […]

Read More

Make WordPress validate for HTML5 by getting rid of rel=”category tag”

Have you tried validating your WordPress site using the W3C validator thinking your site was up to par with today's standards? Only to see a long list of errors on your site? Don't worry, we all have been there, well most of us at least. And there is only one thing to do about the problems, fix them. If your site is using html5, then you probably have a lot of errors complaining about a bad value for your rel attributes (rel="category tag")

Read More

Need for speed: mod_pagespeed an Apache module for faster websites

mod_pagespeed is an open-source Apache module that make Apache rewrite and resize your assets (CSS, JavaScript, images) without requiring that you modify your existing content or workflow. mod_pagespeed is built on PageSpeed Optimization Libraries, deployed across 100,000+ web-sites, and provided by popular hosting and CDN providers such as DreamHost, GoDaddy, EdgeCast, and others. A good example […]

Read More

Shorthand if/else for PHP

There is a special if/else functionality available that not many programmers know how to utilize that I now want to share with you. This function is called a Ternary operation. The ternary operation takes 3 arguments, The first which is the conditional expression, the second is what get returned if the conditional expression is true, the third if it returns false.

Read More

How to send mail with PHP

Sometimes you want to send mail from your php code, maybe you want to send a mail to yourself on an event or send a message to your users or subscribers, don’t fear this is not a hard task to accomplish, and as usual in programming, there is many paths to the same goal, some are not as safe […]

Read More

WordPress RSS – Display data from external sources

WordPress has built-in functionality for parsing RSS files from other sources, this means that you can fetch the latest blog posts or articles from another site and display them on your own site. We will use this to fetch a feed from an external site and display it on our site.

Read More

Flash support for Android is history

Today Google Play stopped providing their users with the ability to download and install Flash on their Android devices. This means Android now longer will support Flash, the number one advantage they had over iOS. This will also give HTML5 a boost in popularity.

Read More

Optimizing your page speed for visitors and SEO

Ancient history Nowadays many web developers around the world underestimate the impact page size has on their sites performance. Back in the days before broadband was considered a standard, people was sitting on slow internet connection with their modems. Back then web developers had to make their pages small enough for those modem users, the […]

Read More

Twitter is down: Are we under attack?!

The first major thing an invading country should do is to take down twitter to disrupt communication and spread panic amongst the population. This is common knowledge. Today I tried logging in to twitter, but I could not connect to the server, all other webpages worked as a charm, so I was sure this only […]

Read More

WordPress Shortcodes

WordPress has a functionality called shortcodes which gives you the ability to insert generated elements into your posts just by typing in a shortcode in the text. All you need to do to make this work is to define a function in your theme’s functions.php file, and hook this funcion to a shortcode using WordPress API for shorcodes.

Read More