Skip to main content
Line Clamping - A PHP Alternative

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 More

Disable Emoji's in Wordpress

Combine External Javascript: Disable WP Emoji’s

As of WordPress 4.2 the CMS platform supports Emoji’s. This could be great news for you, if you use them anywhere away from your mobile phone. However, for many bloggers the added feature is an absolute eyesore, causing combine external Javascript to reappear in Pingdom and Pagespeed Insights. Damn you, WordPress! If you introduce a new feature, at least allow us to disable it!

When you’re optimizing your WordPress website, you’ll notice that minification plugins aren’t able to capture the file. Which means that ‘wp-emoji-release.min.js’ will always show up as an extra DNS request. It also means that Pingdom and Google Pagespeed Insights will suggest you to combine external Javascript. It is a terrible thing if you already spent days fine-tuning your WordPress’ website performance.

Luckily, removing the feature isn’t that hard. Today I’ll show you how a few lines of code will send your WordPress website soaring towards that perfect score again.

Read More