• I’ve created a child theme using twentyseventeen. I’m having problems with images. The featured image appears both on the index page and the single post. However, when I insert an image into the WordPress editor, the image appears correctly in the backend — but doesn’t appear on the frontend.

    When switching to 2017, the images appear fine. This tells me the problem is with the child theme. I’ve overridden the 2017 template-parts/post/content.php file (replacing the_content() with the_excerpt(). Do I need to copy the other template-parts? (there is a template-parts/post/content-image.php that has not been copied to my child theme).

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Its shows fine for me.

    Can you please share your screenshot

    Thread Starter tompkinsjournal

    (@tompkinsjournal)

    I corrected the image issue by disabling the child theme overriding the template-parts/posts/content.php.

    However, disabling the over-ridden content.php also removes my addition of excerpts to the posts. For instance, here is the original content.php code from 2017:

    <div class=”entry-content”>
    <?php

    /* translators: %s: Name of current post */
    the_content( sprintf(
    __( ‘Continue reading<span class=”screen-reader-text”> “%s”</span>’, ‘twentyseventeen’ ),
    get_the_title()
    ) );
    </div>

    And here was my edited version:

    <div class=”entry-content”>
    <?php

    /* translators: %s: Name of current post */
    the_excerpt();
    get_the_title();
    </div>

    Where is my edit falling down?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2017 Images Not Appearing’ is closed to new replies.