Skip to content

Instantly share code, notes, and snippets.

Avatar
🐘
ERROR: Job failed: exit code 1;

RogerTM rogertm

🐘
ERROR: Job failed: exit code 1;
View GitHub Profile
@rogertm
rogertm / functions.php
Created Aug 10, 2021
Agregar Google Fonts a tu sitio WordPress
View functions.php
<?php
/**
* Enqueue styles
*/
function my_theme_enqueue(){
wp_register_style( 'my-theme-google-fonts', 'https://fonts.googleapis.com/css2?family=Roboto&family=Ubuntu:wght@400;700&display=swap' );
wp_enqueue_style( 'my-theme-google-fonts' );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue' );