• Hi. I have been using a free GPL licensed theme for a while and needed to do some modifications to it to be compatible with my language. The changes were mainly for adding fonts to the theme structure.
    Since I love to have this great theme updated (Tempera Theme), this method will break it and i need to put my modifications in a child theme.
    Basically these are the things I’ve done to the main theme to make it compatible (all addresses are relative to theme folder):

    1. changed some lines in “/header.php” to make it compatible with a menu plugin.
    2. added some lines to “/function.php”
    3. added some fonts to “/fonts” folder
    4. added some lines (font entries) to “/fonts/fontfaces.css”
    5. added some lines to “/admin/sanitize.php” to make them available in Themes font options menu.
    6. added a font into font-family of something in “/admin/css/admin.css”

    I read some child theme creating tutorials and was able to create a child theme which can do 1 and 2.

    but the rest are not working!
    Since I’m not a coder, I have hit a Brick Wall! ?? can someone help me on the issue?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I recommend you post on your theme’s support forum: https://www.ads-software.com/support/theme/tempera#postform

    And create a thread for each of your queries so that they are less intimidating for a volunteer.

    Thread Starter euphoria360

    (@euphoria360)

    Thanks Andrew.
    But since i thought this can be applied into any child theme that needs files and directories changed/added, it is sort of general procedure and usable for others, not just tempera.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What you’re asking to do is to override the theme’s fonts, right?

    Thread Starter euphoria360

    (@euphoria360)

    Its more like adding fonts to it. Since the theme has the ability to choose fonts for it, im just adding more options.

    From what i experienced child theme files which placed in root directory of child theme folder (like header.php,footer.php) will replace parent theme files with exception of functions.php which will get appended.

    But what about files in directories?
    Like child_theme/folder/file1.php or .css

    That is my main problem. I hope i described it correctly.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you’re referring to the Tempera theme as distributed on www.ads-software.com, that theme probably calls file1.php (example) in a way that you can override. You need to find out how that file is called in the first place. I do think you have a query specific to your theme.

    Thread Starter euphoria360

    (@euphoria360)

    That sounds complicated! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem in adding fonts to child theme’ is closed to new replies.