• Hi, I’m experiencing an extremely frustrating situation with my Twenty Twelve Child theme. I was attempting to add some new code to it today and it suddenly reverted all the changes I’d previously made, most of which were done with the help of kind people on this forum. So the grey lines came back, the hyperlink in the bottom right-hand corner reverted back to blue and generally ruined everything I’ve done to my site.

    I have no idea why all my changes have been undone. I barely touched the code, just tried to insert some new lines at the top. Can someone see something obvious out of place in this bit of code that force Twenty Twelve to disregard all the previous changes I’ve made to my child?

    §/*
    Theme Name: Twenty Twelve Child
    Theme URI: http://example.com/
    Description: Child theme for the Twenty Twelve theme
    Author: Your name here
    Author URI: http://example.com/about/
    Template: twentytwelve
    Version: 0.1.0
    */

    @import url(“../twentytwelve/style.css”);
    .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 {
    display: none;
    }
    body {
    line-height: 0;
    }
    div.entry-content table tbody tr td h3 span a
    {
    color: #FB4105
    }
    .entry-content table, .comment-content table
    {
    border: none;
    }
    .entry-content td
    {
    border: none;
    }
    .site-content article {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    }
    #colophon {
    border: 0;

Viewing 6 replies - 1 through 6 (of 6 total)
  • You’re missing a semi-colon here:

    color: #FB4105

    See if that fixes the problem.

    Thread Starter pfenn

    (@pfenn)

    Thanks WPyogi, I did and it hasn’t.

    ‘@import url(“../twentytwelve/style.css”);
    .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 {
    display: none;
    }
    body {
    line-height: 0;
    }
    div.entry-content table tbody tr td h3 span a
    {
    color: #FB4105;
    }
    .entry-content table, .comment-content table
    {
    border: none;
    }
    .entry-content td
    {
    border: none;
    }
    .site-content article {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    }
    #colophon {
    border: 0;
    }’

    Can you post a link to the site? Or try using the validator to find any CSS errors in that file-

    http://jigsaw.w3.org/css-validator/

    Thread Starter pfenn

    (@pfenn)

    Hi, yeah the site is here:

    http://patrickpictures.co.uk/

    Been working fine until today and all my child theme changes survived the recent WordPress update. I’ve literally done nothing to the code so can’t understand why is undone all my changes. Very frustrating.

    Any suggestions greatly appreciated….

    You can’t put this kind of code in a CSS file :)!

    /* new stuff from here */
    
    <?php
    /**
     * The template for displaying the footer
     *
     * Contains footer content and the closing of the #main and #page div elements.
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    ?>
    	</div><!-- #main .wrapper -->
    	<footer id="colophon" role="contentinfo">
    		<div class="site-info">
    
    		</div><!-- .site-info -->
    	</footer><!-- #colophon -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    </body>
    </html>

    If you are trying to modify the footer, that need to be a copy of footer.php file in the child theme.

    There are a couple other errors showing up – see:
    http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fpatrickpictures.co.uk%2F&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en

    Thread Starter pfenn

    (@pfenn)

    OK I’ll look into those errors now, thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Twenty Twelve Reverted my changes’ is closed to new replies.