• Resolved PWDesigns

    (@pwdesigns)


    I created a twenty twelve-child theme, (copied the css, header and footer files), but after I installed the child theme I noticed the most recent blog post is not showing up on each of the two blog categories that exist on the website. It appears to the right in the Recent Posts Section but not on the main section of the page. When I switch back to the old theme, they reappear. Any clue why this is happening?

Viewing 9 replies - 1 through 9 (of 9 total)
  • I created a twenty twelve-child theme, (copied the css, header and footer files)

    That’s not how you create a child theme. The child theme’s stylesheet should not be a copy of the parent’s. Try reviewing child themes.

    Thread Starter PWDesigns

    (@pwdesigns)

    I was following that very article. Perhaps I wasn’t clear enough I copied the style sheet, edited the style sheet adding the import as shown in the article you mentioned, leaving only elements that I changed in the stylesheet. Since I had added new code in the header and footer I copied/relocated those files to the new child theme. I had previously made changes to these three files and don’t want to repeatedly update them with the next WordPress Update. So back to my question, Is it normal for the posts not to appear on a new theme when it is first set up?

    Is it normal for the posts not to appear on a new theme when it is first set up?

    No.

    Thread Starter PWDesigns

    (@pwdesigns)

    The posts appear on the right under the Recent Posts Caption but the latest post is not appearing as the most recent post typically does. What would you suspect is the cause? Was there something else that need to be updated?

    I would suspect it’s missing/errant code somewhere in your child theme.

    Perhaps if you temporarily rename or remove your current child theme and then recreate a new child theme one step at a time – beginning with just the child theme directory and child theme style sheet – while being careful to observe the changes with each additional step that you take, you might be able to pinpoint the error that makes the posts disappear from your child theme.

    Theoretically, making a change to the header & footer files shouldn’t change which posts appear. However, it’s possible you did something like leave a closing DIV tag off in the header file, which might do some unintentionally screwy things to the first post. Can you post a link to your site?

    first, make sure not to have any cache plugins active while customizing your site.

    Thread Starter PWDesigns

    (@pwdesigns)

    I do appreciate all the suggestions. I removed the header & footer.php files to eliminate the possibility of a DIV issue. Reduced the style.css file to the comments and the import of the parent theme. I am still having the problem. So the error must somehow be related to my comment section? One question: I wonder if I’m pointing to the wrong place in the theme URI. I put the full path to the twenty twelve-child directory. Is that correct?
    /*
    Theme Name: Twenty Twelve Child
    Theme URI: https://mysite.com/wp-content/themes/twentytwelve-child/
    Description: Twenty Twelve Child Theme
    Author: Me
    Author URI: https://authorsite.com
    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”);

    Thread Starter PWDesigns

    (@pwdesigns)

    Thank you again for all of your help. It was a cache issue.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Made a New Child Theme but the latest post is not appearing’ is closed to new replies.