WordPress.org

Ready to get started?Download WordPress

Forums

Do some themes not like child themes? (15 posts)

  1. kLunKr
    Member
    Posted 2 years ago #

    Weirdest thing. I created a child theme for this one theme that I never used before, a client wanted to me to CSS it up a little differently so I figure I will do what I always do and make a child theme, throw a css file in there get the heading of the file all ready, made the changes to css, and then uploaded it to the themes. Luckily I never used his actual site I used a testing wordpress installation. After I activated the child theme it crashed the site, and it did this to two different wordpress installations. WHAT IN THE HECK!

    I get a SERVR ERROR:

    The website encountered an error while retrieving http://test.mydomain.net/wp-admin/themes.php?activated=true. It may be down for maintenance or configured incorrectly.

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    what theme are you talking about?

    have you contacted the theme author to check if this is a known problem?

  3. cammies
    Member
    Posted 2 years ago #

    I have imported a template and it is working beautifully, see http://www.businesseguides.com/webuild1, but I am using a child theme to place a logo above the title and it seems to have no effect. Can anyone advise why? Here is the child. Alternatively how else do I get the logo there?

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Please post your own topic.

  5. kLunKr
    Member
    Posted 2 years ago #

    @alchymyth

    I am trying to create a child theme for the theme "Dzonia Lite"

    http://wordpress.org/extend/themes/dzonia-lite

  6. alchymyth
    Forum Moderator
    Posted 2 years ago #

    no luck with that one
    - the theme seems to be (on purpose ?) calling some files using 'get_template_directory()' from within its files, which then tries to find these in the child theme -> causing the error.

  7. Chip Bennett
    Theme Review Admin
    Posted 2 years ago #

    This line in functions.php is the problem:

    $functions_path = get_stylesheet_directory() . '/functions/';

    ...which then causes an obvious problem in subsequent lines:

    /* These files build out the options interface.  Likely won't need to edit these. */
    require_once ($functions_path . 'admin-functions.php');		// Custom functions and plugins
    require_once ($functions_path . 'admin-interface.php');		// Admin Interfaces (options,framework, seo)
    /* These files build out the theme specific options and associated functions. */
    require_once ($functions_path . 'theme-options.php'); 		// Options panel settings and custom settings

    Thus, the Theme is telling WordPress to look in the stylesheet directory - i.e. the Child Theme, rather than the template directory - i.e. the Parent Theme for these file includes.

  8. kLunKr
    Member
    Posted 2 years ago #

    So you can not make a child theme for this theme?

  9. Chip Bennett
    Theme Review Admin
    Posted 2 years ago #

    So you can not make a child theme for this theme?

    Sure you can. You have two options:

    1) Copy the /functions/ directory from the Parent Theme into the Child Theme - along with anything else in the Parent Theme that is referenced via get_stylesheet_direcoty().

    2) Modify the Parent Theme, to replace calls to get_stylesheet_directory() with get_template_directory().

  10. InkThemes.com
    Member
    Posted 2 years ago #

    @Chip - Thanks for suggesting the Solution to make the Theme Child Friendly.

    I will update the Theme as well, so that it starts to support the Child Themes.

  11. conflit-rgp
    Member
    Posted 1 year ago #

    I am having the same problem with a theme I recently purchased. I tried the fix stated above but it still made my WordPress site crash.

    The theme I have purchased is Fox: http://themeforest.net/item/fox-wordpress-theme/full_screen_preview/3128968

    I do my usual steps of creating a new directory "fox-child", then create the stylesheet within that:

    /*
    Theme Name:     fox Child
    Theme URI:
    Description:    Child theme for the fox theme
    Author:         My name
    Author URI:
    Template:       fox
    Version:        0.1.0
    */
    
    @import url("../fox/style.css");

    My first assumption of why this wasn't working is because this is what is in the parent themes style.css :

    /*
    Theme Name: Fox
    Theme URI: http://www.luiszuno.com/themes/wp-fox
    Description: A gorgeus Retro Style Theme
    Author: Luis Zuno
    Author URI: http://luiszuno.com
    Version: 1.1.3
    License: Regular
    License URI: http://themeforest.net/licenses/regular_extended
    .
    Buy this template at http://luiszuno.com/blog/work
    .
    */ 
    
    /*wp*/
    .sticky{}
    .gallery-caption{}
    .bypostauthor{}
    
    /* IMPORT MAIN STYLES */
    @import url('css/style.css');

    So all the parent theme's style.css is doing is referencing a css directory within the parent theme with a stylesheet named style.css that starts out like this:

    @import url('normalize.css');
    @import url('main.css');
    @import url('superfish.css');
    @import url('social.css');
    @import url('widgets.css');
    @import url('forms.css');
    @import url('comments.css');
    @import url('entry-content.css');
    @import url('shortcodes.css');
    @import url('dribbble.css');

    Below these @ imports are a couple hundred lines of generic css.

    So that brings me to today... I found this forum about the functions.php issue about this:

    $functions_path = get_stylesheet_directory() . '/functions/';

    I tried taking the course of action stated above, but this didn't help me either. I am ready to give up on this theme, but I have run into this problem before and would like to learn how to solve it.

    Sorry for the long post. Thanks, Nick

  12. conflit-rgp
    Member
    Posted 1 year ago #

    Update:

    I should probably tell you what happens when I attempt to activate the child theme. Once activating the child theme in the backend of wordpress, I get a blank white screen. The dreaded white screen of death, with no error messages or anything.

    Currently the staging server I am going to build this site on is http://rgp.regroupclients.com/

  13. esmi
    Forum Moderator
    Posted 1 year ago #

    I'm sorry but as you are using a commercial theme, you need to seek support from the theme's vendors.

  14. Andrew
    Forum Moderator
    Posted 1 year ago #

    WordPress.org forums do not support commercial themes.
    WordPress.org forums support the core application, themes and plugins that are distributed on WordPress.org.

    Contact your theme's vendors regarding commercial themes.

  15. conflit-rgp
    Member
    Posted 1 year ago #

    Okay. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic