Find Actions And Filters Available In WordPress

When it comes to WordPress development you can pretty much do anything you want, but you will only realise this when you understand how WordPress works and how it's all put together. The two main areas of WordPress development to understand is the difference between actions and filters. Actions allow you to assign functions to run a certain point in the code, when looking into the WordPress core code you

Read more...

Free Files For May 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 for May 2014. jQuery Multiple Tag Select 15 purchases at the price of $5. 1 Required Param 10 Available Optional

Read more...

Social Media Colours

Whenever creating a new site I always find myself going to the major social networking sites to grab their colours to use in icons or buttons. Instead of having to go to all these individual sites I wanted one place to go and get these colours when I needed them. So here's a list of some of the major social media network colours. Facebook Hex: #3b5998 RGB: 59, 89, 152

Read more...

Get A List Of All Theme Page Templates

WordPress allows you to create custom page templates to use through out your site, using these page templates you can completely change the look and functionality of a certain page. Create Page Template To create a custom page template all you have to do is add a new blank php file to your theme directory and save this as custom_page_template.php. Within this new file all you have to do is

Read more...

Force Sub Categories To Use Parent Category Templates

When doing WordPress theme development the first thing you will learn about is the template hierarchy, this is the order of templates WordPress will use to display the content. WordPress actually only needs one template file to work correctly, the index.php file. Depending on what content you are viewing you can create a different page template to show this in a different way. For example if you are looking at

Read more...

Get Image Src With PHP

There are some occasions where you need to get the attribute value in PHP from a HTML element, this can be for migration reasons or perhaps you are writing a script to scrap a website to store the values found. I was writing a script that needed to scrape a web page and pick up all the URLs for the images on the page and store the src values. You

Read more...

Remove Query String From Stylesheets In WordPress

A website owner should always be trying to improve the speed of their website as much as possible. In WordPress there are many things you can do to help improve the performance of your website. Tips to improve the performance of your WordPress website When you run your website through speed tests such as Google Page Speed test one of the things they will flag up is the loading static

Read more...

File_Exists For Remote URL

If you want to make sure that a file exists in PHP you can use the function file_exists(), which takes one parameter of the filename. This function will not only work for files but will also work for directories, you can pass in a filename of the directory and if this directory exists the file_exists() function will return true. The problem I've seen with this function is that people have

Read more...

Getting Started With SASS

If you do any front-end development over the past couple of years then you would of heard of CSS pre-processors. The most common CSS pre-processors are SASS, LESS, or Stylus. CSS pre-processors are scripts that will compile code and output the results into CSS stylesheets. They allow you to create more dynamic, optimized and organised CSS for your websites. In this article I am going to investigate what it is

Read more...

Sticky Posts In WordPress

As of WordPress version 2.7 you've been able to assign some posts to be sticky, a sticky post will make sure that this post appears at the top of the list of posts. If you use your WordPress site as a normal blog and have a list of posts of the homepage of your site, making a post sticky will ensure that this post appears at the top of the

Read more...

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 71