• Resolved Stingraynut

    (@stingraynut)


    I have made over 20 child themes so I’m not new to them but this one’s got me stumped.
    I usually paste the top part of the child stylesheet from the previous working child stylesheet and then alter the details.

    All previous child themes have been on the same server where I am a reseller. This installation is on a server I haven’t used before.
    The theme is Nimble from Elegant Themes.

    The WordPress 2014 theme and Nimble both display correctly.
    Nimble has a capital N

    This is the problem – The child theme shows under themes in the dashboard, with no errors, and can be activated but the style is completely missing when looking at the website

    The top part of the child stylesheet is

    /*
    Theme Name:  Nimble
    Description: Child for the Nimble theme
    Author: Rob Healey
    Template: Nimble
    */
    @import url('../Nimble/style.css');

    I have tried resetting the htaccess to the base wordpress file.

    =================
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    =================

    Server details are
    cPanel Version 11.40.1 (build 11)
    Apache version 2.2.26
    PHP version 5.3.28
    MySQL version 5.1.72-cll

    I disabled all plugins.

    I have tried inserting all the themes stylesheet into the child stylesheet, with this at the top

    /*
    Theme Name: Nimble
    Theme URI: http://www.elegantthemes.com/gallery/
    Version: 2.1
    Description: 2 Column theme from Elegant Themes
    Author: Elegant Themes
    Author URI: http://www.elegantthemes.com
    Template: Nimble
    */

    followed by a paste of the Nimble stylesheet from where it starts with

    /*------------------------------------------------*/
    /*-----------------[RESET]------------------------*/
    /*------------------------------------------------*/
    
    /* http://meyerweb.com/eric/tools/css/reset/ */
    /* v1.0 | 20080212 */

    and still the styling isn’t picked up.

    I created a child for twentyfourteen and that has the same effect, the website shows no styling.
    2014 and Nimble both display correctly. Both child themes can be activated but the website displays with no styling.

    Having spent 2+ hours on this, I am now going to put my style changes at the bottom of the Nimble template, but that won’t help when I ned to alter page templates, functions etc.

    I hope someone can help me find out why the child theme isn’t working, so I can use a child theme and do things properly.

    Rob

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Rob,

    I can’t help you I’m afraid, I’m in exactly the same boat, so I’m posting to be in the loop. Obviously, if I have any luck I’ll let you know.

    Tim, London

    Thread Starter Stingraynut

    (@stingraynut)

    SOLVED!!

    I removed spaces in the name of the child theme folder and both child themes now work.
    I checked back and I have never had to do this before. I have folders named like ‘Child Theme for Deep Focus’ working fine.

    At this stage I don’t know if it’s something to do with the way my usual server, OR this new server is configured, or the PHP version.
    All my other child themes are working and some of them have been updated to WP 3.8.1 so it’s not connected to how WordPress works.

    Whatever the reason, from now on I will use underscores so that the child themes are future proof.
    ie ‘Child_Theme_for_Deep_Focus’

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @baggi-t, in future please don’t post in someone else’s thread like that because you removed Rob from a place where we track threads with no replies.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I have made over 20 child themes – this one won't work’ is closed to new replies.