• Resolved [email protected]

    (@mailwm-johnstoncom)


    Can anyone help before I tear my hair out?

    I’m new to WP but confident at web page design.

    Am trying to create a new child theme.

    Have followed the Codex line for line: New child folder in the ‘themes’ folder; correct header in the child style.css (copied and pasted from Codex); added the link to the parent theme – in this case
    @import url(“../twentytwelve/style.css”);

    All looks fine as per the Codex, but all I get is the basic default style – see https://wm-johnston.co.uk/wordpress123/

    Any help would be most appreciated . . .

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    I can see the child theme is activated, but the stylesheet style.css cannot be found.
    https://wm-johnston.co.uk/wordpress123/wp-content/themes/twentytwelve-child/style.css
    Are you sure you uploaded your stylesheet to the correct folder?

    Can you post the child theme stylesheet header.

    Thread Starter [email protected]

    (@mailwm-johnstoncom)

    Hi Keesiemeijer,

    Thanks for your speedy reply.

    The stylesheet – style.css – is inside wp-content/themes/twentytwelve-child

    The stylesheet code is:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    /*
    Theme Name:     Twenty Twelve Child
    Theme URI:      https://example.com/
    Description:    Child theme for the Twenty Twelve theme
    Author:         Your name here
    Author URI:     https://example.com/about/
    Template:       twentytwelve
    Version:        0.1.0
    */
    @import url("../twentytwelve/style.css");
    
    .site-title a {
        color: #009900;
    }

    Any ideas would be gratefully received. This is driving me daft.

    Thanks.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    That looks correct to me but try this one from Quirm.net and add your .site-title styling to the bottom of that one just as a test.

    Thread Starter [email protected]

    (@mailwm-johnstoncom)

    Hi Jan,

    Many thanks for that. Most kind.

    I’ve used the Quirm code in my stylesheet:

    /*
    Theme Name:Twenty Twelve Child
    Version: 1.0
    Theme URI: https://quirm.net/themes
    Description: A basic starter child theme for Twenty Twelve
    Author: Mel Pedley
    Author URI: https://blackwidows.co.uk
    Template: twentytwelve
    License: GNU General Public License v2
    License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    */
    
    . . . 
    
    /* Import layout */
    @import url(../twentytwelve/style.css);

    But I’m still getting the default css styling when I view the page:

    https://wm-johnston.co.uk/wordpress123/

    I’ve updated the file and get ‘File edited successfully’.

    I must be doing something really stupid – but I can’t see what it is.

    Any ideas?

    Thanks

    Thread Starter [email protected]

    (@mailwm-johnstoncom)

    Sorry – only just spotted the Moderator note about posting code.

    Will do so in future.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Don’t worry about the code, at least you didn’t post 1,500 lines. ??

    The problem is a permission issue. The child theme style.css is not readable.

    https://wm-johnston.co.uk/wordpress123/wp-content/themes/twentytwelve-child/style.css?ver=3.5.1

    Check your file/directory permissions, I think that once that is corrected it will all sort itself out.

    Thread Starter [email protected]

    (@mailwm-johnstoncom)

    Brilliant!

    I’d never have spotted that.

    All sorted now.

    Can’t thank you enough.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    You’re welcome, glad to help. ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘creating child theme is driving me insane!’ is closed to new replies.