• Resolved kdraw

    (@kdraw)


    I’m a total hack and have no idea why this worked, but here’s a little tip for anyone not able to get a child theme style.css to override the Berlin theme’s style.css (by Graph Paper Press).

    Using some guesswork based on a similar post here:
    https://www.ads-software.com/support/topic/child-theme-stylecss-not-overriding-parent?replies=4

    1. I added a header.php file to my child theme folder.
    2. Then I copied the whole of the header.php code from the parent’s file into my child header.php. (I’m sure this isn’t necessary, but like I said, I don’t know what I’m doing).
    3. Then I replaced this line in the child theme’s header.php

    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/style.css” type=”text/css” media=”screen, projection” />

    with this

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_directory’); ?>/style.css” type=”text/css” media=”screen, projection” />

    I guess because “stylesheet” tells the child to reveal its own stylesheet changes rather than the parent’s “template” style? Who knows? Anyway, now styles I write in my child theme’s style.css seem to override the Berlin theme’s style.css which is a dream come true.

Viewing 1 replies (of 1 total)
  • This post I found when googling “child theme for berlin graph paper press” made my day. Thanks so much for posting this, spent the last hour scratching my head.

    I appreciate it greatly! ??

Viewing 1 replies (of 1 total)
  • The topic ‘Berlin Child Theme’ is closed to new replies.