Author: Nicholas Rowe
-
Quick snippet to change all instances of WordPress URL
Sometimes you are moving a websites folder structure, or sometimes you are moving a website hosts. This quick and easy sql script will allow you to update all instances of the current URL with a new URL so moving wordpress sites is painless. UPDATE wp_options SET option_value = replace(option_value, ‘http://www.oldurl’, ‘http://www.newurl’) WHERE option_name =…
-
WordPress SSL Offloading
Understanding what’s happening When your page is accessed over HTTPS, but the Load Balancer is performing SSL offloading and actually requesting your content on the non-SSL port 80, the webserver, PHP, or anything else for that matter, does not understand or see that it’s being accessed over https://. The fix for this, is that Load…
-
Hiding Applications from the Mac Osx Dock
I have a few applications that I run whilst I’m using my computer, these applications are literally only used upon startup and then never touched again until I need to restart my computer. What’s the point in having them in the system dock? Well, none. Usually you can do a simple right click on the…
-
Bundling plugins with WordPress themes.
First off, many people will disagree with including Plugins with your themes. Yes and generally rightly so: Automatic Updates: If the plugin is freely available from WordPress.org already, then so are automatic updates to the plugin. The original author can add features, fix bugs, and deploy them quickly. Your clients and customers then benefit from on-going development.…
-
Fonts. What and where.
Found a great little font “cheat sheet” I’m going to leave it here, else I’ll never remember where I found it!
-
Vertically aligning elements
For a long time I’ve always been using the following method of vertically aligning elements on a web page: [css].parent{ display: table; width: 100%; } .child{ display: table-cell; text-align: center; vertical-align: middle; } [/css] This method works good across all browsers and includes solid IE support down to IE7. The downfall of this particular method…
-
One thing you didn’t know about WordPress images.
By default in WordPress when you server up a .JPEG file, WordPress optimizes the image to save bandwidth and space. 90% of the time, no one will realize this as the WordPress function behind image optimization does a fantastic job at keeping it’s quality the same, unless you are using very large high quality photo…
-
Personal inspiration for September
Just leaving this here for now… Design is not just what it looks like and feels like. Design is how it works. “Most people make the mistake of thinking design is what it looks like. People think it’s this veneer – that the designers are handed this box and told, ‘Make it look good!’ That’s…
-
Interacting with WP_Query, listing more posts from the current category.
For a new project of mine I was creating a single.php for the blog side of the website. The website had a few specific categories for the blog, these being News, Races and Events. Whenever you were reading a blog post under one of these categories, the sidebar should show readers more posts from that…