jetpack.php 969 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Jetpack Compatibility File.
  4. *
  5. * @link https://jetpack.com/
  6. *
  7. * @package Elegant_Business
  8. */
  9. /**
  10. * Jetpack Setup
  11. */
  12. function elegant_business_jetpack_setup() {
  13. /*
  14. * The Parent theme alredy comes with Jetpack compatibility
  15. *
  16. * Tweaking the compatibility rules might be done here,
  17. * if even necessary at all.
  18. */
  19. }
  20. add_action( 'after_setup_theme', 'elegant_business_jetpack_setup' );
  21. /**
  22. * Enqueue Jetpack-specific styles
  23. *
  24. * We need to enqueue some additional CSS to override the
  25. * parent theme’s fonts which are pre-baked into JetPack.
  26. *
  27. * See `elegant-business/style-jetpack.scss`
  28. * Also see: https://github.com/Automattic/jetpack/blob/master/modules/theme-tools/compat/twentynineteen.css
  29. */
  30. function elegant_business_jetpack_styles() {
  31. wp_enqueue_style( 'elegant-business-jetpack', get_stylesheet_directory_uri() . '/style-jetpack.css', '20181218' );
  32. }
  33. add_action( 'wp_enqueue_scripts', 'elegant_business_jetpack_styles' );