Support » Fixing WordPress » TwentyTwelve Child Theme: Syntax Error ???

  • Just getting set up, created a child theme; however, it does not seem to communicate with parent theme, on sub domain. Remarked out all modifications in order to test. Must have something wrong with child syntax…

    
    /*
    Theme Name:   Twenty Twelve Child
    Theme URI:    http://ex.cbd4health.com/twentytwelve-child/
    Description:  Twenty Twelve Child Theme
    Author:       Jacob Barnett  06/21/21
    Template:     twentytwelve
    Version:      1.0.0
    Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain:  twentytwelve-child
    
    */
    
    @import url("../twentytwelve/style.css");
    /* =Imports styles from the parent theme
    -------------------------------------------------------------- */
    
    /* =Theme customization starts here
    
    -------------------------------------------------------------- */
    
    /* ------------------------------------------
    ~~~~~~~~  REMARK THESE IDEAS BELOW: ~~~~~~~~~~~~
    +++++++++++++++++++++++++++++++++++

    Would appreciate illumination. THANK YOU!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • It would seem that you are not using the latest approach.
    You don’t need to use the import anymore:
    https://digwp.com/2016/01/include-styles-child-theme/

    Also re: the code you posted – what file is this in?

    You can download a pre-build from here as well:
    https://childthemewp.com/twenty-twelve/

    Ther’es no need to “tell” the child where the parent is – WordPress does this for you.

    Thread Starter Chi Is Current

    (@jacobbarnett)

    corrinarusso (@corrinarusso) –

    Thank you for your reply and recommendation.

    I amended the ‘style.css’ file, as per your recommendation (below) located:
    /ex.cbd4health.com/public_html/wp-content/themes/twentytwelve-child/

    
    /*
    theme name: twenty twelve child
    author: ex.cbd4health.com
    author uri: https://ex.cbd4health.com/twentytwelve/
    description: twenty twelve wordpress child theme.
    template: twentytwelve
    text domain: twentytwelve-child
    */
    
    /* =Theme customization starts here
    
    -------------------------------------------------------------- */
    @font-face{
        font-family: "BD SantaMonica";
        src: url('fonts/bdsanta.ttf');
    }
    
    /* ------------------------------------------
    ~~~~~~~~  REMARK THESE IDEAS BELOW: ~~~~~~~~~~~~
    

    However, the wp site still is not working properly as the header image is not showing up.

    It seems there is still something I’m overlooking in style.css.

    Thread Starter Chi Is Current

    (@jacobbarnett)

    Could this problem be caused by the fact the WP install is in a sub domain?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.