• Resolved xan3ver

    (@xan3ver)


    I have a child theme activated. I was trying a couple of different things, because it did not seem as though my child theme was working correctly. I have now changed something that has made a few of the styling that I have added, to not work.eg:

    My main menu is not centered anymore, this is what I have in my stylesheet:

    *Centre main menu
    */
    .main-navigation ul.nav-menu,
    .main-navigation div.nav-menu > ul {
    text-align: center;
    }

    My header image and a few of the images in my sidebar has a border again:

    /*Remove border around 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;
    }

    The padding below the main nav bar has increased again:

    /*Remove padding under menu
    */

    .site-header {
    padding-bottom: 0;
    }

    Proudly powered by wordpress is visible again:

    /*Hide ‘proudly powered by wordpress
    */
    a[title=’Semantic Personal Publishing Platform’] { display: none; }

    And quite a couple of other things…. I think that I have set my child theme up wrong. Please help! This is how my the code at the top of my child style.css:

    /*
    Theme Name: twentytwelvechild
    Author: the WordPress team
    Author URI: https://ww.wp.xz.cn/
    Template: twentytwelve
    Version: 1.7
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    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
    */

Viewing 5 replies - 31 through 35 (of 35 total)
  • Yes, you need to call wp_head() in your child theme’s copy of header.php. You should add it to the very end of the <head> section, right before the closing tag:

    <?php wp_head(); ?>
    </head>
    Thread Starter xan3ver

    (@xan3ver)

    Ok, yay! I have some styling again, now there is just a lot of stuff missing from what was there before – almost everything in my side bar, my header image, my footer is in my main nav bar… Will I have to redo all of this?

    Thread Starter xan3ver

    (@xan3ver)

    I fixed a few issues which seems to be fine now! Yay! Thank you! but a side bar etc. Im sure I can fix up again! But I have a message on my dashboard where my themes are –

    Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.

    Name Description
    twentytwelvechild Template is missing. Delete

    In your child theme’s style.css, do you have a Template line in the header that points at the folder where the parent theme is located:

    Template: twentytwelve

    As for your other issue, you do have to reassign sidebar widgets, custom navigation menus, header images, etc. the same way you did when you were using the parent theme.

    Thread Starter xan3ver

    (@xan3ver)

    Ok, I have the template line in there now! (but just for clarity, I was never using my parent theme… I was working in child all the time, it was just somehow set up wrong!) Thank you! I will rebuild my sidebar etc! Thank you all SO SO SO much!! Oh my goodness, I would have never been able to fix this!

Viewing 5 replies - 31 through 35 (of 35 total)

The topic ‘Child Theme problems’ is closed to new replies.