• Resolved AlwaysARedhead-Catherine

    (@alwaysaredhead-catherine)


    I’ve created a new folder name twentytwelve-child in the twentytwelve directory, then I made a stylesheet and saved it as style.css. Below is the code I inserted in the new stylesheet to change the default font in the body of Twenty Twelve.

    From what I understand, all I have to do now is upload the file to the twentytwelve-child directory. Then when I create a new blog post, the post will automatically have the default font of Calibri in the body but will still inherit all the settings of the original stylesheet.

    /*
    Theme: TwentyTwelve child
    Description: optional
    Author: optional
    Author URI: optional
    Template: TwentyTwelve
    Version: optional
    */

    @import url(*wp-content/themes/twentytwelve/twentytwelve-child/style.css*);

    body {
    font-family: Calibri, Helvetica, sans-serif;
    }

    I don’t want to get into changing any functions/php code because I am not there on the learning curve..yet.

Viewing 3 replies - 1 through 3 (of 3 total)
  • ‘ve created a new folder name twentytwelve-child in the twentytwelve directory,

    the new folder should be in the /wp-content/themes/ directory;
    i.e.

    /wp-content/themes/twentytwelve-child

    also, the @import line should be:

    @import url("../twentytwelve/style.css");

    review https://codex.www.ads-software.com/Child_Themes

    Thread Starter AlwaysARedhead-Catherine

    (@alwaysaredhead-catherine)

    Okay, I misread it, thank you for that correction.

    Also when writing the import line, just put the two dots (..) not the entire path to the style sheet?

    Beyond the thread here, double dots means go back on folder(directory)and then cascade up to the key file. One dot means the current directory. Avoid full path names because when moving the files to the server the localhost changes. Pain to update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘changing default font family in twenty twelve using a child theme’ is closed to new replies.