themes-wordpress/modern-business/inc/jetpack.php
2019-02-01 09:36:04 -08:00

33 lines
959 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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 themes 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' );