• 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 2 replies - 1 through 2 (of 2 total)
  • Do you want to add fonts to the configuration lists or simply to use those particular fonts for your content and apply them to certain areas.

    Number one is quite tricky as it would mean messing around with a lot of files.
    Number two is simpler (or not so simpler depending on what fonts you are adding). Using Google Fonts for example is as simple as using them in the settings. Other online fonts will need some file importing and new styling rules to be added.
    Using your own font files adds slightly more work, as the font files need to be prepared (be made “web-ready”) before including them in the files and calling them in the style.

    Thread Starter euphoria360

    (@euphoria360)

    The fonts i want to add into child theme are actually web fonts. Google doesnt have them yet (probably shady copyright issues). And yest i want them added to configuration lists since it is the best way to integrate them fully into Tempera.

    I already added them into Tempera but not as a child them. I was had to change a copy of Tempera (thanks for gpl license). Everything is perfect now except the fact that it breaks the updates.

    In first post you can see what ive done to the theme.

    My question is: is it possible to do above modifications in a child theme, so i can update tempera easily?

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