Last active
August 2, 2022 09:23
-
-
Save pascalbajorat/ff3cda73780c3df7e629ed894348d70e to your computer and use it in GitHub Desktop.
Divi Font-Embed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Lokale Google Fonts für Divi by Bajorat Media | |
* Description: Lokale Google Fonts für Divi by Bajorat Media - ACHTUNG: Die Fonts müssen manuell im Plugin angepasst werden. | |
* Author: Bajorat Media | |
* Author URI: https://www.bajorat-media.com | |
* Plugin URI: https://www.bajorat-media.com/divi-dsgvo-google-fonts-lokal-16010/ | |
* Version: 1.0.0 | |
**/ | |
/* Security-Check */ | |
if ( !class_exists('WP') ) { | |
die(); | |
} | |
// Font-Datei registrieren | |
function bm_divi_local_fonts() { | |
wp_enqueue_style( 'local-google-fonts', plugin_dir_url(__FILE__) . 'fonts.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'bm_divi_local_fonts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment