Nessuna descrizione

custom-header.php 764B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Sample implementation of the Custom Header feature
  4. *
  5. * You can add an optional custom header image to header.php like so ...
  6. *
  7. <?php the_header_image_tag(); ?>
  8. *
  9. * @link https://developer.wordpress.org/themes/functionality/custom-headers/
  10. *
  11. * @package XShop
  12. */
  13. /**
  14. * Set up the WordPress core custom header feature.
  15. *
  16. * @uses xshop_header_style()
  17. */
  18. function xshop_custom_header_setup() {
  19. add_theme_support(
  20. 'custom-header',
  21. apply_filters(
  22. 'xshop_custom_header_args',
  23. array(
  24. 'default-image' => '',
  25. 'default-text-color' => '000000',
  26. 'width' => 1800,
  27. 'height' => 250,
  28. 'flex-height' => true,
  29. )
  30. )
  31. );
  32. }
  33. add_action( 'after_setup_theme', 'xshop_custom_header_setup' );