Position underlining closer to the text [CSS]

Perhaps you use border-bottom instead of text-decoration: underline to underline links or other text. But if this underline is too far from the text, you have a problem, because you cannot position a border closer to the text. Here I show you how you can resolve that.

Continue reading "Position underlining closer to the text [CSS]"

Making a normal PHP page oEmbed ready for WordPress

The Meetups page on de.wordpress.org automatically displays the next six meetups from wpmeetups.de. To implement this, I needed to find a solution for embedding a regular PHP page on a WordPress page. The solution was the oEmbed functionality of WordPress, introduced in 4.4.

Continue reading "Making a normal PHP page oEmbed ready for WordPress"

Responsive images and lazy loading in WordPress

The technique responsive images prevents users from downloading unnecessary large images. Lazy loading only loads images if they are almost in the visible area, so the user does not download images he does not see. This post shows you how to use lazy loading with responsive images in WordPress.

Continue reading "Responsive images and lazy loading in WordPress"