Skip to content

Instantly share code, notes, and snippets.

@z8888q
Created April 2, 2014 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z8888q/9937676 to your computer and use it in GitHub Desktop.
Save z8888q/9937676 to your computer and use it in GitHub Desktop.
change wordpress Radiate theme header image style.
#inc/extras.php
$header = get_header_image();
$header_image = "background-image: url('$header');";
$header_repeat = " background-repeat: no-repeat;";
$header_width = " max-width: 100%; height: 480px; background-size: cover;";
$header_position = " background-position: center bottom;";
$header_attachment = " background-attachment: scroll;";
$header_image_style = $header_image . $header_repeat . $header_width . $header_position . $header_attachment;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment