Decode 2.8.4, functions.php
-
Hello, i did create a child theme for Decode, and i also created a functions.php, to use the google fonts, but still nothing changes.
I don’t know what I’m doing wrong, this is the functions.php that i added in my child theme.<?php function load_fonts() { wp_enqueue_style('googleFonts', 'https://fonts.googleapis.com/css?family=Droid+Sans|Oxygen+Mono'); } add_action('wp_enqueue_scripts', 'load_fonts'); function my_updated_copyright($first_year, $owner) { $copyright_notice = '? ' . $first_year; $current_year = date('Y'); if($first_year != $current_year) { $copyright_notice .= ' - ' . $current_year; } $copyright_notice = $owner.' '.$copyright_notice; return $copyright_notice; } ?>
And the style.css of my child theme is this:
/* Theme Name: Decode-2.8.4 Child Theme URI: https://scotthsmith.com/projects/decode/ Description: Decode-2.8.4 Child Theme Author: Edwin van Thillo Author URI: https://www.vanthillo.eu Template: decode Version: 1.0.0 Text Domain: decode-2.8.4-child */ @import url("css/decode.min.css"); /* =Theme customization starts here -------------------------------------------------------------- */
Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Decode 2.8.4, functions.php’ is closed to new replies.