WordPress

Docker

WP_HOME and WP_SITEURL

// If we're behind a proxy server and using HTTPS, we need to alert WordPress of that fact
// see also http://codex.wordpress.org/Administration_Over_SSL#Using_a_Reverse_Proxy
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
	$_SERVER['HTTPS'] = 'on';
}
// (we include this by default because reverse proxying is extremely common in container environments)

if ($configExtra = getenv_docker('WORDPRESS_CONFIG_EXTRA', '')) {
	eval($configExtra);
}
      WORDPRESS_CONFIG_EXTRA: |
        define('WP_HOME', 'http://example.com');
        define('WP_SITEURL', 'http://example.com');

Misc

In the customize editor, it’s possible to add CSS like:

.smaller50 {
	max-width: 50%;
}


.smaller25 {
	max-width: 25%;
}

They can then be applied in the additional settings of a block, but they must be tailored for the tag (not every css works with every tag…).

Show keys to be pressed in WordPress pages

Select the destination and in block, in advanced, create an HTML anchor:

Then link to this by selecting a piece of text and using the link function:

Enter the anchor you created and select the result.