Heiko Mamerow

Web development with WordPress

Category: WordPress Web Development

  • wp-env: How to run multiple instances in parallel

    If you work with different docker environments at the same time you need to manage the ports. wp-env uses port 8888 by default. If this port is already in use by another project then you have a problem. The solution is basically quite simple: Just change the ports. Admittedly this is quite annoying to check […]

  • Easy-Peasy local webdevelopment with wp-env

    Even for the smallest WordPress development project you need a local environment to build, run and test the code every time. There are already many very good tools for this. With wp-env you can start an IDE immediately with zero configuration in ‘nullkommanix’. wp-env is an npm package developed by the Gutenberg project. It is […]

  • ChatGPT first try and Bingo!

    Its very impressed how easy it is to generate code with ChatGPT. Today i signed up for an ChatGPT account and one of my first questions was: Write me a WordPress plugin make a database backup every day. This is what ChatGPT answers me immediately: Not bad! Of course this code is not “best practice” […]

  • Preload CSS background image with CSS

    If a CSS background image is to change on mouseover, there is always an unsightly loading delay on the first hover. Because the hover image must first be loaded by the browser. To make the hover image visible on the first mouseover without delay, it must be preloaded. Normally the image could be preloaded with […]

  • Switch from reCAPTCHA to hCaptcha for GDPR

    With the judgment of the regional court München from 20.01.2022 it was made clear that in Germany Google Fonts are no longer allowed to be embedded remotely without the consent of the user. Therefore is it best to load the fonts locally. This means the fonts need to store on the same location where the […]

  • Hovering with inline CSS variables

    Recently I had a nice little problem to solve: I need to change a dynamic bunch of inline background images (SVG icons) via CSS. The user should manage the icons in WordPress with custom fields. Origin code example with static inline background image: HTML/PHP CSS As you can see above every icon is just a […]

  • Hello world!

    Hello world!

    Welcome to my new website. This is my first post. After 3 years of not publishing and just reading others weblogs I decided to freeze my old blog and make a new start. Funny thing: My old website started in January 2012 and was running with Twenty Twelve. Now exact 10 years later i changed […]