How to add Social Share Buttons to WordPress without Plugins

There are plenty of plugins for WordPress that allow you to add social share buttons to your Posts and Pages. Usually, these plugins are bloated.

They require a lot of CSS-overrides to make it fit with your theme’s design. Some even slow your site down, because they’re not coded well or are packed with a bunch of options you don’t need.

Well, to hell with code-bloat! I want your site to be fast. Today I’m going to show you a really simple way to add your own social share buttons to your WordPress blog.

Read moreHow to add Social Share Buttons to WordPress without Plugins

Redirect Simple Products to Configurable Parents with Options Preselected

Recently I met quite a challenge while building an extension for Magento. By default, the urls of simple child products whom belong to a configurable parent are answered with a 404. This behaviour can be easily overridden with a small extension.

Our client wanted to take it a step further. Today we will build an extension that redirects URLs of simple products to their configurable parents with options preselected.

Read moreRedirect Simple Products to Configurable Parents with Options Preselected

Get Total Price of Cart Including/Excluding VAT/Tax in Magento Minicart Widget

A quick post here, which is more of a note to myself, because I’ve just spent one hour digging through methods for this. If you want to display the total price including or excluding VAT in Magento, using strictly methods already integrated in Magento, use the below code to call these in a pre-formatted way.

The code displayed below you can use save the output to a variable (e.g. $grandTotal or $subTotal) and manipulate it. You can also use it to display (echo) the output anywhere on your page (e.g. minicart.phtml). Which is what I used it for.

Read moreGet Total Price of Cart Including/Excluding VAT/Tax in Magento Minicart Widget

How to get a 100/100 Score on Pingdom & Google Pagespeed Insights

Choosing the right host to serve your website can be such a pain. If you’re a small business owner or a startup, you usually don’t have the funds to invest in “fancy” WordPress-hosting.

Luckily this doesn’t mean you’re site has to load sluggish. With the right tools you can give these “fancy” WordPress-hosts using Varnish & Nginx a run for their money.

In this guide I’m going to show you how to get a perfect score on Pingdom and Google Pagespeed Insights with W3TC and Autoptimize.

Read moreHow to get a 100/100 Score on Pingdom & Google Pagespeed Insights

Line Clamping: A Clean CSS Text-Overflow Alternative with PHP

Text-overflow: ellipsis. In human language: gracefully cut off any text and replace it with ‘…’ when there’s no more space left for text. An absolutely beautiful CSS property, don’t you think? Think again. This only works on the first and only line of text within a text block. It removes everything after that. Not Cool, CSS! But not to worry. Today I will show you a clean and simple alternative to line clamping using PHP.

Read moreLine Clamping: A Clean CSS Text-Overflow Alternative with PHP