News & Blog

Update Published Date When Going From Draft to Published in WordPress

April 10th, 2014 - Posted by Steve Marks to PHP, Web Development.
The published date of a page or post in WordPress is set when the article is first added to a website. This is then used in various scenarios; ordering news articles in date order, displaying when a blog post was first added, or setting the ‘pubDate’ value in an RSS feed. An is...

Resolving the Random Zero at the End of AJAX Requests in WordPress

March 18th, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Software, Web Development.
If you’ve ever integrated AJAX functionality into a WordPress plugin or theme, you have probably / should have used the in-built WordPress functionality that already exists. An article in the WordPress Codex explains how to do this, and demonstrates how easy it can be. I needed to do...

Shopify – Get a Page’s Title, Content and More With The Handle

March 4th, 2014 - Posted by Steve Marks to Software, Web Development.
Following on from a recent e-commerce project in Shopify, I came across a scenario whereby I needed to get details about a particular page from somewhere on the site. For examples sake, let’s imagine that I needed to get the content of an ‘About Us‘ page and display it on...
Give Editor Access to Plugin

How To Allow Editors Access To a Single Plugin in WordPress

February 21st, 2014 - Posted by Steve Marks to PHP, Web Development.
Sometimes the default permissions given to user roles in WordPress need to be tweaked to match the needs of a particular project. We come across this quite a lot whereby we need to hide or show various different options for different user roles. This can normally be achieved by using a plu...
Shopify Theme Missing Required Fieles

‘missing template “layout/theme.liquid”‘ Error When Uploading Custom Shopify Theme

February 20th, 2014 - Posted by Steve Marks to Software, Web Development.
I’ve been working on my first e-commerce project with Shopify over the past week. As a result I’ve have had the joy of learning their ‘liquid’ templating language whilst creating a new bespoke Shopify theme. In order to upload a theme, you first need to get the fold...
Debugging Ajax Requests

Debugging Why Your AJAX Requests Aren’t Working

February 18th, 2014 - Posted by Steve Marks to Javascript / jQuery, Software, Web Development.
AJAX is a great way to improve usability for a site or application and, with the up-rise of libraries such as jQuery, MooTools and Prototype, it’s never been easier to implement AJAX functionality. When it’s working it can make tasks quicker to complete, and also means that the...
acf-street-view

Advanced Custom Fields Street View in Google Map

February 5th, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Software, Web Development.
One of the field types available with the Advanced Custom Fields plugin for WordPress is ‘Google Map‘. This allows a user to enter a location or address, then have a Google Map be output on the frontend. I worked on a site this morning that required a Google map adding, the dif...
Responsive Filemanager

Responsive Filemanager Showing Blank Screen or Errors

February 4th, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Server Management, Software, Web Development.
I recently upgraded to version 4 of TinyMCE and needed a file manager that worked with this new version so that the user could upload and insert files into the WYSIWYG. Fortunately I came across an excellent file manager called ‘Responsive filemanager‘ which was relatively easy...

Fixing Remote Modals in Bootstrap 3.1

January 31st, 2014 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
Yesterday saw the release of Bootstrap version 3.1. After upgrading one of my sites that previously used version 3.0 I noticed that my remote modal dialog boxes had stopped working. The translucent backdrop would show but the content wouldn’t. There were no JavaScript errors, and no ...
Overwrite Modern Tribe Event Plugin Labels

Overwrite English Labels in Modern Tribe Events Calendar Plugin

January 29th, 2014 - Posted by Steve Marks to PHP, Web Development.
I recently installed and setup the Event Calendar plugin from Modern Tribe on a WordPress site. It worked great out of the box and was so easy to customize through use of the templating system that it comes with. I could get it looking exactly how the client wanted, with the exception of a...