Browsed by
Tag: wordpress

WordPress Debugging: Optimising and making slow instances run faster

WordPress Debugging: Optimising and making slow instances run faster

I have a client whose WordPress site was compromised in the past and I managed to make some huge improvements by some use of a simple plugin – P3 Profiler. It was very easy to install and setup (I had to add a profiles directory to the wp-content/uploads directory and also make sure that the Media links directory was correct – I was testing on a local version so needed to update this). After running the scan I could see…

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

Facebook Like Button: Add it to your WordPress or other Website

Facebook Like Button: Add it to your WordPress or other Website

A nice thing to have on each of your blog posts or web pages is a like button from Facebook which will allow users to like individual posts. This will help you gauge how people have received each post in comparison to others. With the like button, there is a nice feature to prompt the user to share it to their feed. This will exposure your post to more people (you should be able to try it above – you…

Read More Read More

Setting up a WordPress Blog Website (live and staging/testing versions)

Setting up a WordPress Blog Website (live and staging/testing versions)

I wanted to document the “proper” way to setup a WordPress blog on your server with a decent staging/test server. To start off it is probably worth mentioning why WordPress is a great system to use. It is probably one of the oldest but continually updated pieces of software out there for blogs. Not only does it work well with blogs and dynamic websites but it can be used to create a static set of pages in a very easy…

Read More Read More