clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

PHP if, else and elseif statements

Here's all the different ways to do conditional logic in PHP. The bare-bones basic syntax in plain english goes something like this…

Fluid multi column layout where sidebar and margins stays fixed width, without JavaScript

More fluid layout examples ahead. First I was like hmm... sure need js to that. But of course not! I was working on a layout with a lot of…

Different ways to redirect a URL

A quick guide on redirection with Apache, NGINX, or with plain HTML. Apache Use the APache Redirect directive, paste this in your .htaccess…

How to remove image dimension attributes in WordPress

Just a quick snippet. May come handy on responsive layouts. Source . More on the subject .

Get WordPress post ID inside and outside of the loop

Getting the post ID comes handy sometimes when writing conditional logic. Post ID inside loop As simple as: I find it that sometimes when…

Make WordPress SEO friendly with a proper title and description tags

Someone said something like "if you're ever been charged of SEO, you've bee cheated". Having the basics right, gets you long way. This post…

Change the WordPress title field placeholder text

Really handy snippet to change the "Enter title here" text to suit your post type better. Just paste this to your functions.php , change…

Automatic backup solutions for WordPress

Here’s a guide to different solutions how to automatically backup WordPress database and/or files. I've never needed my backups, but their…

CSS beveled corners

Beveled corners aren’t as easy to achieve as rounded ones, but there’s few extremely handy methods to do them, other one even works down to…

Firefox wont take percentage padding on form elements

Irritating little bug. But, there is a fix as always. ℹ️ I think this bug has been fixed, so this article is a bit useless. It's an ugly fix…

  • © 2022 Antti Hiljá
  • About
  • All rights reserved yadda yadda.
  • I can put just about anything here, no one reads the footer anyways.
  • I love u!