• Hi all! I’m trying to create a child theme of the theme f8 Lite, but it doesn’t show up at the theme page in WP.

    I’ve created the style.css doc according to the codex page about creating child themes and put it in a different map in the themes map of the site.

    /*
    Theme Name: at-Ellen
    Theme URI: http://www.at-ellen.nl
    Description: based on F8 Lite
    Template: f8-lite
    Version: 0.1.0
    */

    @import url(“../f8-lite/style.css”);

    Could someone put a light here on what I am doing wrong here?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Have a look at the last post in this topic:

    I was checking the website for “Graph Paper Press” where F8 Lite originates from… None of their free themes allow child themes

    http://wordpress.org/support/topic/f8-lite-child-theme-problem?replies=4

    In the future, we will be releasing “child themes” to provide design alternative and additional applications (apps) that will work with F8 Lite.

    http://themes.svn.wordpress.org/amys-portfolio/1.3/INSTALL.html

    HTH

    David

    None of their free themes allow child themes

    There is no practical way for a Theme to prevent itself from being used as a template (i.e. as a Parent Theme). Something else must be the issue.

    I’ve created the style.css doc according to the codex page about creating child themes and put it in a different map in the themes map of the site.

    What does this mean? What is a “map”, and what is the “themes map of the site”?

    Note: f8-lite is not Child Theme “friendly”.

    For instance, in functions.php:

    // Load theme options
    require_once ( get_stylesheet_directory() . '/theme-options.php' );
    
    // Load Post Images
    require_once ( get_stylesheet_directory() .  '/images.php');

    The call to get_stylesheet_directory() should instead be get_template_directory(), so that, if a Child Theme is in use, WordPress looks for the theme-options.php and images.php files in the Parent Theme, rather than in the Child Theme.

    For any such call, you will need to do one of the following:

    1) Copy the template file into the Child Theme, or
    2) Add a template file with the specified name, e.g. theme-options.php, which includes an appropriate include call, e.g.:

    require_once ( get_template_directory() . '/theme-options.php' );

    Which will then cause your Child Theme to include the specified file, and will prevent the include_once() calls in the Parent Theme from faulting.

    Thread Starter Klaarbenje

    (@klaarbenje)

    So if I understand it correctly, the theme itself doesn’t allow child themes, but it is possible the way you described. I’m gonna try it tomorrow, thanks 🙂

    So if I understand it correctly, the theme itself doesn’t allow child themes…

    You’re looking at it a bit backwards.

    A Theme can neither allow nor disallow Child Themes. A Child Theme is utterly outside of the control of any given Theme.

    Chris has got it right – and his solution is the best from what I can gather – create two files in your child theme, one called theme-options.php that looks like this:

    <?php
    require_once ( get_template_directory() . '/theme-options.php' );
    ?>

    and one called images.php that looks like this:

    <?php
    require_once ( get_template_directory() . '/images.php' );
    ?>

    and the f8-lite child theme works.

    Am having similar issues for the last 2 days…
    Have read so many almost solutions but this looks closest to my issue.
    The code from my theme -executive-wp- follows. Would anyone be able to tell me if this needs modifying as I have practically exhausted every other avenue including changing my text editor! Thanks in advance lovely peeps.

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Child theme not showing up’ is closed to new replies.