Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. <?php
  2.  
  3. // Current implementation
  4. add_theme_support(
  5. 'custom-header',
  6. array(
  7. 'default-image' => '%s/images/x.jpg',
  8. 'default-text-color' => '000000',
  9. 'random-default' => false,
  10. 'width' => 1500,
  11. 'height' => 500,
  12. 'flex-height' => true,
  13. 'header-text' => true,
  14. 'uploads' => true,
  15. 'wp-head-callback' => 'album_colour_styles',
  16. )
  17. );
  18.  
  19. // Suggested implementation
  20. add_theme_support(
  21. 'custom-header',
  22. array(
  23. 'default-image' => '%s/images/x.jpg',
  24. 'default-text-color' => '000000',
  25. 'random-default' => false,
  26. 'width' => 1500,
  27. 'height' => 500,
  28. 'flex-height' => true,
  29. 'header-text' => true,
  30. 'uploads' => true,
  31. 'wp-head-callback' => 'album_colour_styles',
  32. 'refresh' => array(
  33. 'site-title' => '.site-title', // Take care of auto update site title text, and change header colour
  34. 'site-description' => '.site-description', // Take care of auto update site description
  35. 'header' => '.branding', // Show & hide title and description
  36. ),
  37. )
  38. );
  39.  
  40. //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement