REM Sass Mixin With Pixel Fallback

The REM CSS unit is similar to the EM CSS unit except it allows you to size elements relative to the root of the HTML tag, as it stands for Root EM. The EM unit is relative to the font-size of the parent, which can cause problems in working out the correct size to use in descendent elements. Because the REM is relative to the root we can set the

Read more...

Display Submenu Only On Parent Page

The in-built WordPress menu system allows the content author to create a menu by a simple drag n drop interface, it allows you to select existing posts, page or let you create custom links to add to the menu. Using the drag n drop interface you can select child elements on the menu. When you output the menu on your theme using the function wp_nav_menu() WordPress will automatically create the

Read more...

Register New Post Statuses In WordPress

WordPress posts allow you to have some form of workflow when editing your posts. This is done by assigning a post status for each stage of the WordPress posts. By default the WordPress will take up the status of Draft which tells WordPress to create a post but not to publish it on the front-end of the site, it will only publish it on the site when you hit the

Read more...

Change WordPress Email Content Types To HTML

All emails in WordPress are sent using the function wp_mail, the default content type for these email are in text/plain, which does not allow HTML to be placed in your emails. If you want to create custom HTML emails you need to change the content type of the emails to allow you to have HTML in them. To change the content type of WordPress email you can use the filter

Read more...

Free Files For October 2014

Each month the Envato marketplace brings you free premium files. Envato is a web marketplace where you can get premium files for different areas of your website. My favourite marketplaces are the script marketplace CodeCanyon and the theme marketplace ThemeForest. Here are the files which you can get for free in October 2014. Twitter Timeline Slider for WordPress 11 purchases at the price of $11. This plugin give an opportunity

Read more...

Output Contents Of A Doctrine Object

I've being doing a lot of development with Doctrine recently and one of the things that I found out is that the Objects it works with can be huge which makes debugging the objects quite difficult for you and the browser to process. If you haven't used Doctrine before you really should give it a try. Doctrine is essentially a set of PHP class libraries that are focused on database

Read more...

HTML5 Download Attribute

In this tutorial we are going to look into another HTML5 feature with the download attribute. The download attribute is a way of telling the browser that to download the file it is linking to, this can be a media file or a PDF document or a webpage etc. This is something you used to have to do with a server-side code. For example you will link to a server-side

Read more...

HTML5 Form Validation

Since HTML5 came into webpages it brought a bunch of new features, the most useful features it brings is the functionality that you would normally use JavaScript for. An very good example of how HTML5 can help us with forms is client side form validation. In the past we would create a form on a page and then setup the JavaScript on the OnSubmit event to then check the values

Read more...

Free Files For September 2014

Each month the Envato marketplace brings you free premium files. Envato is a web marketplace where you can get premium files for different areas of your website. My favourite marketplaces are the script marketplace CodeCanyon and the theme marketplace ThemeForest. Here are the files which you can get for free in September 2014. jQuery Shining Image 177 purchases at the price of $8. jQuery Shining Image is an HTML5 jQuery

Read more...

Getting Started With Composer In PHP

In this tutorial we are going to learn about composer and how we can use it to develop our PHP applications. Composer is a tool that allows to manage your third party dependencies in your PHP application, it will allow you to create a list of all third party scripts and libraries and their version number. Composer will then look into the repository of the third party library and the

Read more...

1 2 3 4 5 6 7 8 9 67