Posts Tagged: information

wp_home vs wp_siteurl in WordPress

The difference with WP_HOME and WP_SITEURL in WordPress

Posted

A brief explanation on the difference between WP_HOME and WP_SITEURL in WordPress If you’ve done any development work with WordPress then you’ve probably noticed two similar looking rows in the database. Specifically WP_HOME and WP_SITEURL. These two have always confused me. To set the URL of your site you need to use the WP_HOME constant,… Continue Reading +

How to set a featured product loop in WooCommerce 3

Featured Products Loop in WooCommerce 3

Posted

If you’ve ever needed to display featured products through a custom loop in WooCommerce on one of your custom template pages, this snippet of code is what I’ve been using for WooCommerce 3 and above. You’ll need to wrap this in a list element possibly with a class of “products” depending on your css. <?php… Continue Reading +

Sharing on Facebook without Javascript

Adding a share link to Facebook without using JavaScript

Posted

Recently I had to add a Facebook sharing link into a webpage where Javascript was not available, and I wasn’t sure if it was possible. After some researching I discovered that it was indeed possible if all you need is the basic functionality, and really, why would you want to overcomplicate things? The following method… Continue Reading +

Code wrapping

Sublime Text 3 – wrapping selection in tag shortcut

Posted

As a front-end web developer, something I seem to end up doing a lot of times is wrapping individual lines, or wrapping a section of code with HTML tags. For example, I might have received a text document from a client with copy for their website and I need to wrap the supplied content in… Continue Reading +

Captcha Example

Something you didn’t know about CAPTCHA

Posted

You know those annoying boxes that make you enter a few words into a box before you can continue submitting a comment/downloading a file/some other action, they’re called CAPTCHA or Completely Automated Public Turing tests to tell Computers and Humans Apart. Their main purpose is to help in preventing spam, but there’s another bonus reason… Continue Reading +

Cake Slices

And so it ends!

Posted

It feels a little aberrant to write this, but I won’t be posting cake recipes online every month next year! I’ll still be baking the occasional cake, but after 24 months and 26 cakes, my little side-project 12cakes.com is coming to an end. It started as a simple plan to help encourage me to make… Continue Reading +

Star Wars Episode V - Tthe Empire Strikes Back Poster

28 Things in 28 Years

Posted

Last year I did a blog post about 27 things I’d learnt in 27 years and for some reason it seems to be quite popular, so as I turned 28 this month, I thought I’d do a follow up – 28 in 28! I’ve been converted by eReaders. Paper books still have their place and… Continue Reading +

Graphic Designer - Paul Rand

Why Design is a service NOT a hobby!

Posted

I realise that I, and hopefully other web designers, are almost certainly in the minority of workers that can say say “I like my job” but I’d like to point out one thing (that to me at least) is really obvious, we might be artsy, alternative, creative, and a few other words that fit into… Continue Reading +