• Resolved Armoros

    (@armoros)


    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)
  • You need to add the CSS to make the changes appear. The Google font site will tell you what you add, but it would be something like this:

    body,
    button,
    select,
    textarea {
    	font: 300 110%/1.5 "FONTNAME", "Oxygen", "Helvetica Neue", "Arial", sans-serif;
    }
    Thread Starter Armoros

    (@armoros)

    Yes Scott, of course, it works fine now ?? Thanks for your help, and your great theme.

    Great! Have a good one!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Decode 2.8.4, functions.php’ is closed to new replies.