Browsed by
Tag: php

Update March 2014

Update March 2014

I thought I would give an update on my blog as it has been a while since I did so! A major project that I have been working on for almost 6 months now is about to go live. I am looking forward to releasing it next week and showing the world what me and (now) a team of developers have created. Recently I also managed to get a bit of spare time to start developing a side project in…

Read More Read More

Creating a WordPress Theme from Scratch: Adding Menus

Creating a WordPress Theme from Scratch: Adding Menus

As discussed in previous post, functions.php is automatically included in the processing of a theme. This is therefore the best place to add default settings that you want to a theme, as well as helper functions. To make sure that a function is called on the initialisation of a theme you should use the following in the functions.php file: function add_menus(){ // Do Stuff Here } add_action( ‘init’, ‘add_menus’ ); In order to register the menus for your theme you…

Read More Read More

Creating a WordPress Theme from Scratch: Getting Started

Creating a WordPress Theme from Scratch: Getting Started

There are actually only two files that you need to get a basic theme up and running: index.php and style.css. If you add these to a new theme folder (wp-content/themes/new-theme-dir/) then you can choose your theme from the dashboard (Appearance->Themes):   To populate this data with the details of your theme, you need to create an initial comment in the style.css file like so (I called my theme Raul just because…): /* Theme Name: Raul Theme URI: http://www.dezco.co.uk/ Description: A nice clean…

Read More Read More