• Resolved JMR contact

    (@jmr-contact)


    Hi Tim,

    My Problem
    ———–
    When I try to create a ‘Link-Child’ Theme , i got an error message in my wordpress admin panel saying that theme is broken , the parent theme “Link” is missing and install the parent theme “Link”.
    I don’t understand what is wrong because the parent theme is ‘Link’ and it is already installed and is activated for the moment.

    Context
    ———
    I use wordpress 4.0.1 and Link theme version 1.O

    Why a child theme ?
    ——————
    For example, i added functions in function.php, modified a bit style.css.
    I don’t want my customization to be erased by the new versions 1.1 of Link and 1.4.2 of flat-bootstrap.
    So, before upgrading Link Theme to version 1.1 and Flat Bootstrap Theme to version 1.4.2, I decided to create a folder called ‘link-child’ for child Theme in the same wordpress directory wp-content/themes where ‘link’ directory and ‘flat-bootstrap’ folders are located.

    I created the following style.css in the ‘link-child’ folder :
    /*
    Theme Name: link-child
    Theme URI: https://example.com/
    Description: Link theme child
    Author: Me
    Author URI: https://example.com/about/
    Version 1.0
    Template: link
    Template Version: 1.0
    */

    Thanks for your ideas

    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Tim Nicholson

    (@timnicholson)

    Hi, JMR. The issue is that the Link theme itself is a child theme of Flat Bootstrap. You can’t have a child of a child theme, but you can still accomplish what you are looking to do.

    1. Copy the entire link theme directory over to new directory. Its fine to name the directory link-child like you want.
    2. In the link-child style.css, change the “Theme Name” to “Link Child”. Make sure the “Template” still says “flat-bootstrap” (NOT “link”).
    3. Add your functions to the link-child functions.php file.
    4. Add your CSS to the link-child style.css.

    When the original Link theme is updated (like to v1.2), it will update the one in the /link folder and not override your /link-child.

    Thread Starter JMR contact

    (@jmr-contact)

    Hi Tim

    Ok I understood.
    So that means that each time I will update Link theme, I’ll have to copy the entire new link theme directory to my link-child and add my link-child functions and CSS.

    That’s ok.

    Thanks for your answer.

    Best regards

    Theme Author Tim Nicholson

    (@timnicholson)

    Yes, although I don’t think you’ll need to do that with every single update to the Link theme unless you need whatever enhancement or fix is in a new version. One thing that may help you is to look at my github page for the Link theme. From there, you can see exactly what has changed from version to version and just apply the updates you need or just copy in the changed files only. Link Theme on Github

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fail to create a Child Theme for Link Theme’ is closed to new replies.