WordPress theme requires PHP v >=8.1 – How to a dd different PHP version to docker-composer

Adjusting the wordpress image to the below works wordpress:6.3.1-php8.1-apache Full docker-compose.yml file # version: ‘3.1’ services: db: image: mysql:8 container_name: mysql_WP restart: always command: “–default-authentication-plugin=mysql_native_password” environment: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: dbname MYSQL_USER: user MYSQL_PASSWORD: password # volumes: # – ./schema:/docker-entrypoint-initdb.d phpmyadmin: image: phpmyadmin/phpmyadmin restart: always ports: – 8082:80 environment: PMA_HOST: db MYSQL_ROOT_PASSWORT: password wordpress: image: wordpress:6.3.1-php8.1-apache … Read more

Problems with the PluginDocumentSettingPanel SlotFill in Gutenberg

It doesn’t work because that is old behaviour and Gutenberg changed a year ago. Where The Confusion Comes From This commit: https://github.com/WordPress/gutenberg/commit/00cb38c3655daffd429ad4acfc57d6ee3b7f2d83 On Apr 20, 2022 code was removed that made it fallback to the plugin icon. Now an icon has to be explicitly passed as a prop or no icon is shown. Why? https://github.com/WordPress/gutenberg/pull/40355 … Read more

Stiff-necked themes

It is wise to have at least one standard theme installed, because it will always work. If your current theme, for whatever reason, no longer works with the current WordPress install, you will have a backup theme to get your site running again. That said, you are not the first to complain about this and … Read more

Theme / Divi change visitor css and site logo and all site urls based on REQUEST_URI non logged in wp user

Ok, I managed to get this far and hope it helps someone else a bit… so I solved the non-logged-in user issue like this (in theme functions.php or in my case my plugin functions) function first_visit(){ $ip = $_SERVER[‘REMOTE_ADDR’]; $value = get_option($ip); if ($value == ”) { update_option($ip,1); // test $affiliate = basename($_SERVER[‘REQUEST_URI’]); // in … Read more