jetpack.php 1013 B

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