/** * Styles the header image displayed on the Appearance > Header admin panel. * * Referenced via add_custom_image_header() in parament_setup(). */ function parament_admin_header_style() { $background_image = get_template_directory_uri() . '/images/diagonal-stripes-010.png'; if ('' != get_background_image()) { $background_image = get_background_image(); } ?> <style type="text/css"> #headimg { border: 1px solid #eee; overflow: hidden; position: relative; width: <?php echo HEADER_IMAGE_WIDTH; ?> px; height: <?php echo HEADER_IMAGE_HEIGHT; ?> px; background-color: <?php echo parament_sanitize_color(get_background_color(), '20232d'); ?> ; background-image: url( <?php echo esc_url($background_image); ?> ); } #name, #desc { font-family: Trebuchet, arial, sans-serif !important; position: relative; text-shadow: #000 1px 1px 2px; z-index: 2 !important; } #name { font-weight: normal; font-size: 40px; line-height: 47px; margin: 55px 0 0 50px; } #desc { font-size: 16px; line-height: 1.5; margin: 0 0 20px 50px; } #parament-header-image { position: absolute; top: 0; left: 0; z-index: 1; } </style> <?php }
/** * Styles the header image displayed on the Appearance > Header admin panel. * * @see parament_custom_header_setup(). */ function parament_admin_header_style() { $background_image = get_background_image(); if (empty($background_image)) { $background_image = get_template_directory_uri() . '/images/diagonal-stripes-010.png'; } ?> <style type="text/css"> #headimg { border: 1px solid #eee; overflow: hidden; padding: 0 20px 40px; position: relative; max-width: 950px; background-color: <?php echo parament_sanitize_color(get_background_color(), '20232d'); ?> ; background-image: url( <?php echo esc_url($background_image); ?> ); } #name, #desc { color: #<?php echo get_header_textcolor(); ?> ; font-family: Trebuchet, arial, sans-serif !important; position: relative; text-shadow: #000 1px 1px 2px; z-index: 2 !important; } #name { font-weight: normal; font-size: 40px; line-height: 47px; margin: 55px 0 0 50px; } #desc { font-size: 16px; line-height: 1.5; margin: 0 0 20px 50px; } </style> <?php }