• I’m currently working on a childtheme (based on Twenty Fourteen). For convenience I’m developing on my local machine and there everything works as expected. Now, I wanted to test my theme on my remote server. But that failed and I have no clue why. Obviously my theme is not being recognized as a childtheme.

    Here’s the header of my style.css in my childtheme:

    /*
     Theme Name:   MyChildTheme
     Theme URI:    https://mywebsite.com
     Description:  Twenty Fourteen Child Theme
     Author:       Me
     Author URI:   https://mywebsite.com
     Template:     twentyfourteen
     Version:      0.0.1
     Text Domain:  twenty-fourteen-child
     */

    … and in functions.php I have some debug-code like the following:

    print_r(array('templatepath' => TEMPLATEPATH, 'stylesheetpath' => STYLESHEETPATH));

    On my local machine that gives me:

    Array
    (
        [templatepath] => /home/me/mysite/wp-content/themes/twentyfourteen
        [stylesheetpath] => /home/me/mysite/wp-content/themes/mychildtheme
    )

    whereas on the remote server I get

    Array
    (
        [templatepath] => /home/me/mysite/wp-content/themes/mychildtheme
        [stylesheetpath] => /home/me/mysite/wp-content/themes/mychildtheme
    )

    I’m pretty puzzled. Any idea what could have gone wrong? How could this be fixed? I have already been working with childthemes for quite some time but I have never experienced something like this before…

    Thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    What happens when you use the functions rather than the constants?

    get_template_directory()
    get_styleshee_directory()

    Thread Starter nusi

    (@nusi)

    hmm… doesn’t change anything, unfortunately.

    Thread Starter nusi

    (@nusi)

    … for whatever reason, it’s working now:

    I made another (test-)childtheme, activated it instead of my. The test-theme worked as expected. Then I reactivated to my allegedly broken one and – whoops – it worked! Really mysterious… whatever the reason for the failure was, I’ll keep an eye on it and return to this thread if I find out more.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    That is super strange. Were/Are any plugins active?

    Thread Starter nusi

    (@nusi)

    I think I had jetpack installed. But as far as I can remember I checked if the plugins were the reason for the failure (they weren’t).
    But anyway, things do work now… maybe some file-/directory-permissions thing? I’ve had problems with that before…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘childtheme not being recognized as childtheme’ is closed to new replies.