Use the HTML Entity ‘Identical To’ For Your Responsive Menu

A lot of websites become responsive to mobile devices these days, and there are a lot of different implementations. One I’ve seen is with the use of the Hamburger Menu, that symbolizes a folded menu. Some websites use special made fonts, like genericons, and others use a simple image. But there’s another option: the HTML …

Overname Fotobattle.nl

Vanaf vandaag heb ik de website Fotobattle.nl overgenomen. De website wordt komend half jaar opnieuw opgebouwd en klaar gemaakt voor een heropening. Houdt daarom de website van Fotobattle.nl in de gaten!

Europese Unie en hun WordPress blogs

De Europese Unie is blijkbaar niet erg up to date.. Ze gebruiken voor hun blogs een verouderde versie van WordPress, namelijk versie 2.9.1, terwijl op dit moment (van schrijven) versie 3.5.2 de nieuwste versie is. Blijkbaar is up to date zijn niet zo belangrijk..

Protect wp-login.php with nginx for botnet that scans WordPress websites

With the recent news of a big botnet that attacks WordPress websites via wp-login.php was it time to prepare myself for the attack. wp.login.php is an uncached page that uses PHP resources which can slow down your website or cause errors. My resolution: restrict access to wp-login.php with nginx. I’m only allowing the IP addresses …

How to change WordPress default Email From Name and From Address

WordPress sends by default an email from wordpress@domainname.com with WordPress as sender name. This can be adjusted easily via a filter. Change the From Address The filter will change the From address from wordpress@ to the value you specify. function new_mail_from( $from_email ) { $from_email = ‘myownemail@domainname.com’; return $from_email; } add_filter( ‘wp_mail_from’, ‘new_mail_from’ ); Change …

WordPress MP6 registers Google fonts apart from my theme

My theme (customized theme Esplanade on www.maartenvandekamp.nl) uses Google fonts. These fonts are registered and enqueued the right way in functions.php. The new (secret!) plugin MP6 also uses Google fonts, but does not check if a user is logged in, so these fonts are always enqueued when a post of page is viewed, even when I’m …

Improved code – Show related posts in WordPress without a plugin

A while ago I posted an article about showing related posts in WordPress without the use of a plugin. Recently I have found better code for this and I would like to share it with you <?php $tag_ids = wp_get_post_tags( $post->ID, array( ‘fields’ => ‘ids’ ) ); $args = array( ‘tag__in’ => $tag_ids, ‘post__not_in’ => …