• Resolved martingolan

    (@martingolan)


    So frustrated!
    Installed Coraline theme, set up a child theme, and the child theme is not taking, meaning changes I make in the child them do not show up, but changes I make in the parent do.
    I did manage to get the footer working as I want — I see a different one when I revert back to the parent theme.

    I know it’s something very simple, but nothing works, tried everything!

    my site is https://martingolan.com/blog/home/

    It looks odd because I created odd fonts in the child so I could see if my changes were taking.

    Should I post copies of the css of my child theme and also its functions.php file?

    Any help will be greatly appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter martingolan

    (@martingolan)

    Here area the relevant files in my child theme.

    /*
    Theme Name: Coraline-child
    Description: Child theme for Coraline
    Author: Martin Golan
    Template: coraline

    (optional values you can add: Theme URI, Author URI, Version)
    */
    @import url(“../coraline/style.css”);

    */

    /* =Theme customization starts here
    ——————————————————- */

    <! — took this out of Coraline css:

    #colophon .generator-link {
    background: url(“images/wordpress.png”) no-repeat right center;
    display: inline-block;
    margin: 0 3px 0 0;
    padding-right: 20px; — >

    /* =Header
    ———————————————– */

    #header {
    margin: 0 0 28px;
    }
    #masthead {
    padding: 28px 0 0 0;
    }
    #site-title {
    font-family: “Lucida Sans Unicode”, Arial, Helvetica, “Nimbus Sans L”, sans-serif;
    font-size: 12px;
    font-style: italic;
    letter-spacing: -0.03em;
    line-height: 42px;
    text-align: center;
    }
    #site-title a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
    }
    #site-description {
    color: #000;
    font-family: “Helvetica Neue,” Arial, Helvetica, “Nimbus Sans L”, sans-serif;
    font-size: 128px;
    margin: 0 0 9px 0;
    text-align: center;
    }
    #branding img {
    border: 1px solid #000;
    border-width: 3px 0 1px;
    max-width: 100%;
    height: auto;
    }

    body {
    background-color:black;
    }
    .marketing h2{
    color:red;
    }

    and here is the child’s function.php file. It may be in an odd form since it’s been changed about a thousand times, looking for that magic bullet:

    <?php)

    {

    wp_enqueue_style( ‘main_css’, get_stylesheet_uri() );}

    (?>)

    Thread Starter martingolan

    (@martingolan)

    I discovered I had a typo in the name of the functions file. And when I fix it to functions.php the site crashes and it won’t load at all.

    One thing: I sure learned a lot about how WordPress works from all the tinkering I’ve been doing. But I’m still stuck: changes I make in the child theme css don’t show up on the site (except the footer, for which I created a footer.php).

    Thread Starter martingolan

    (@martingolan)

    I figured it out.
    Thanks anyway.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘child theme not working’ is closed to new replies.