• Resolved jabb

    (@jabb)


    Newbie here. I created twenty twelve-child and in that folder is only the style.css which says this:

    /*
    Theme Name: Twenty Twelve Child
    Theme URI: https://example.com/themes/twentytwelve-child
    Author: JAB
    Author URI: https://example.org/
    Template: twentytwelve
    Description: Child Theme to Twentytwelve Theme
    Version: 1.0
    Text Domain: twentytwelve

    Then I went to my site and activated the child theme. Not working correctly. Pages don’t show, just invididual links throughout.
    My site is test area.sdaseattle.org

    Can someone help, please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jabb

    (@jabb)

    Never mind. I finally figured out the enqueue the parent and child theme stylesheets stuff. Seems to be working now.

    hi, i’m italian, not good inglish speaking. My first time here. I created twenty twelve-child. To do a test I changed the color of the background and margin top of the site and work. But do not work for the other changes:

    /*
    Theme Name: Twenty Twelve Child
    Description: Tema Child 2015 per il Tema Twenty Twelve
    Template: twentytwelve
    Version: 0.1.0
    Tags: light, gray, white, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
    Text Domain: twentytwelve
    */

    body {background-color: lightblue;}

    body .site {
    margin-top: 0;

    /*remove the border on the header image */

    .entry-content img, .comment-content img, .widget img, img.header-image, .author-avatar img, img.wp-post-image {
    border-radius: none !important;
    box-shadow: none !important;
    }

    .main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a, .main-navigation .current_page_item > a, .main-navigation .current_page_ancestor > a {
    color: #F41212;
    font-weight: bold;
    }

    .entry-title a {
    text-decoration: none;
    }
    a {
    color: red;
    }

    my function.php is:

    <?php

    //mie funzioni personalizzate
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_theme_style’ );
    function enqueue_parent_theme_style() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
    }
    // aggiungi una favicon al mio blog
    function blog_favicon() {
    echo ‘<link rel=”Shortcut Icon” type=”image/x-icon” href=”‘.get_bloginfo(‘stylesheet_directory’).’/images/favicon.ico” />’;
    }
    add_action(‘wp_head’, ‘blog_favicon’);

    ?>

    gandolino, if you have a question, you should create your own post instead of posting on someone else’s thread.

    The reason why the rest of your CSS is not working is because you have left off the closing right brace } from the end of the second rule. Change this:

    body .site {
    margin-top: 0;
    
    /*remove the border on the header image */
    
    .entry-content img, .comment-content img, .widget img, img.header-image, .author-avatar img, img.wp-post-image {
    border-radius: none !important;
    box-shadow: none !important;
    }

    to this:

    body .site {
    margin-top: 0;
    }
    /*remove the border on the header image */
    
    .entry-content img, .comment-content img, .widget img, img.header-image, .author-avatar img, img.wp-post-image {
    border-radius: none !important;
    box-shadow: none !important;
    }

    i’m sorry, I thought it was like in the forum where you enter your questions according to the topic. It worked, thanks a lot.

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