33 lines
959 B
PHP
33 lines
959 B
PHP
<?php
|
||
/**
|
||
* Jetpack Compatibility File.
|
||
*
|
||
* @link https://jetpack.com/
|
||
*
|
||
* @package Modern_Business
|
||
*/
|
||
/**
|
||
* Jetpack Setup
|
||
*/
|
||
function modern_business_jetpack_setup() {
|
||
/*
|
||
* The Parent theme alredy comes with Jetpack compatibility
|
||
*
|
||
* Tweaking the compatibility rules might be done here,
|
||
* if even necessary at all.
|
||
*/
|
||
}
|
||
add_action( 'after_setup_theme', 'modern_business_jetpack_setup' );
|
||
/**
|
||
* Enqueue Jetpack-specific styles
|
||
*
|
||
* We need to enqueue some additional CSS to override the
|
||
* parent theme’s fonts which are pre-baked into JetPack.
|
||
*
|
||
* See `modern-business/style-jetpack.scss`
|
||
* Also see: https://github.com/Automattic/jetpack/blob/master/modules/theme-tools/compat/twentynineteen.css
|
||
*/
|
||
function modern_business_jetpack_styles() {
|
||
wp_enqueue_style( 'modern-business-jetpack', get_stylesheet_directory_uri() . '/style-jetpack.css', '20100116' );
|
||
}
|
||
add_action( 'wp_enqueue_scripts', 'modern_business_jetpack_styles' );
|