Marinus Klasen

Marinus Klasen

  • Development
  • Consultancy
  • Developer Resources
  • Blog
  • Contact

A-Frame: Change an objects color on hover

August 24, 2023

A-Frame is quite fun to work with, but it takes a while to get into.. As I’m doing a project in A-Frame at the moment, you’ll probably see some more insights on this library on my blog in the next couple of weeks. Special thanks to Diarmid Mackenzie for helping me out in the A-Frame […]

Continue Reading

Connecting to a Cloudways application with VSCode

August 15, 2023

If you’ve read my blogs before than you probably know that I like to keep it short. So here you go; In this case {HOSTNAME} refers to the SSH hostname, if you connect with ssh user@domain.com than the hostname is domain.com. {SERVER_ID} and {APPLICATION_ID} can be found by connecting to SSH and then running the […]

Continue Reading

Force refresh PHP-FPM or Litespeed cache

August 4, 2023

The other day I ran into an issue while deploying new code to the Dutch Hosting Platform Antagonist. It seemed like Symlinks were not refreshed when a new release was pushed, resulting into unexpected issues like broken links to assets and PHP code not updating. These issues were immediately resolved by changing the PHP version. […]

Continue Reading

Only return zip/postal codes from Google Places AutoComplete Javascript API

July 19, 2023

It’s been a while, and it took me a while to get Google Maps Places to return only zip codes, so I’ll share a little code snippet so that you can fix it within a quick search!

Continue Reading

Setup Mailcrab in Docker & PHP

May 8, 2023

Okay – it took me a while to get this configured correctly so I thought I’d share the setup with all of you. In the end, my issue was not setting -t -i in my sendmail path. Mailcrab Docker Compose setup Now, I run this in combination with a few PHP/WordPress containers, make sure that […]

Continue Reading

Storing private data with SSH on WPEngine sites

December 15, 2022

I’ve been working with several clients hosted on WPEngine lately and whenever I start work on a site, the first step is usually rsyncing all data and running a wp db export with WP-CLI. Now, my go-to command is wp db export && mv *.sql ~/_sql/ and it worked. So the second step is an […]

Continue Reading

Get the HTML content of a block edit page or post in WordPress

November 30, 2022

I’ve been searching for this for way too long, but this is the way to get the HTML output of a page in WordPress.

Continue Reading

Rename Coupon code text to Discount code in Woocommerce

November 3, 2022

Another day, another snippet! This snippet allows you to replace all occurrences of the coupon word to something that you like better, like “discount code”. This code is highly inspired from the code shared in WPBeaches’ blog post. It’s customized for usage in classes, and optimized as some occurrences were not replaced and the “Click […]

Continue Reading

Background-size cover in mPDF

October 22, 2022

It’s saturday today, and I found some time to work on some side projects.. This one is about generating PDF’s from HTML and.. I wanted to use a full-width background image that keeps the original ratio. Usually, it’s background-size: cover; that solves this, but not in mPDF.. In mPDF we use background-image-resize Really, that’s it. […]

Continue Reading
  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • …
  • 12
  • Next Page »

Get in touch

Contact me using the details below

Marinus Klasen

Wilhelmina van Pruisenweg 35, 2595 AN Den Haag

marinus@mklasen.com
twitter.com/marinusklasen
linkedin.com/in/marinusklasen

  • GitHub
  • LinkedIn
  • Twitter

Have you read?

  • Elementor Widget UsageMarch 27, 2025
  • Programmatically showing popups with ElementorMarch 25, 2025
  • The Elementor sanitize_settings errorSeptember 12, 2024
  • Announcing.. Wooping Shop Health!June 13, 2024
  • Swiper setup when using wp-scriptsMarch 14, 2024

Copyright © 2025 ยท Marinus Klasen | Webdesign by Team Rood