diff --git a/www/wp-content/themes/enfold-cille/functions.php b/www/wp-content/themes/enfold-cille/functions.php index dc827ab..befca8d 100644 --- a/www/wp-content/themes/enfold-cille/functions.php +++ b/www/wp-content/themes/enfold-cille/functions.php @@ -7,17 +7,16 @@ */ -if ( !function_exists( 'write_log' ) ) { - function write_log( $log ) { -# if ( true === WP_DEBUG ) { - if ( is_array( $log ) || is_object( $log ) ) { - error_log( print_r( $log, true ), 3, '/tmp/manuel.cillero.errors.log' ); - } - else { - error_log( "$log\n", 3, '/tmp/manuel.cillero.errors.log' ); - } -# } +/* + * Add help text to screen in a metabox. + * See https://code.tutsplus.com/articles/customizing-the-wordpress-admin-help-text--wp-33281 + */ +add_action( 'add_meta_boxes', 'help_featured_image_metabox' ); +function help_featured_image_metabox() { + add_meta_box( 'help-featured-image', 'Sobre la imagen destacada', 'help_featured_image_metabox_content', 'post', 'side' ); } +function help_featured_image_metabox_content() { + echo("La mejor proporción para la imagen destacada es la que mantiene una relación de 2'5 a 1. Normalmente 1030x403.

"); } /*