• Resolved ghp123

    (@ghp123)


    If in the theme “Twenty Fifteen” try to use the feature image with the code

    <?php
    // Post thumbnail.
    twentyfifteen_post_thumbnail();
    ?>

    but I moved it to just above

    </header><!– .entry-header –> in content.php (child theme) so that the image appears under the title.

    This centres the image. But I would like to let it align to the left but am not able to get this work. i tried to put the code in-between a “<div align =left>” but that does not change anything.

    Any idea’s how i can solve this problem?

Viewing 12 replies - 1 through 12 (of 12 total)
  • please post a live link to your site.

    Thread Starter ghp123

    (@ghp123)

    This is a link to a post that uses this new code

    https://www.thlog.com/minion-king-bob-pop-vinyl-figurine/

    (other posts on the side that do line out on the left have the image in the content.)

    try:

    .post-thumbnail img { margin-left: 0; }

    Thread Starter ghp123

    (@ghp123)

    alchymyth if i use that then non of the post show up

    alchymyth if i use that then non of the post show up

    where di you add this?

    it should go into style.css of a child theme or get added via a custom CSS plugin.

    Thread Starter ghp123

    (@ghp123)

    ?? OK I didn’t do that of course ??

    But i tried that now and nothing changes if i add it the the style.css of my child theme.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Have you noticed you have a caching plugin? That will save old copies of your CSS. Clear its cache from a setting in the dashboard and then deactivate it while you develop.

    Thread Starter ghp123

    (@ghp123)

    I did clear that cache and turned it off but still nothing happened.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you clear its cache and then deactivate it?
    As you can see, your Child Theme style.css file is missing Alchymyth’s CSS recommendation: https://www.thlog.com/wp-content/themes/twentyfifteen-child/style.css?ver=4.2.2

    Thread Starter ghp123

    (@ghp123)

    Hi Andrew,

    Of course it didn’t show any more as i removed it after….

    But i did put it back and cleared the cash then turned the plugin of and it still does not show so turned the plugin of tried it again but not luck. (cache now is still off and code is there but not showing in the url you gave above)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    cache now is still off and code is there but not showing in the url you gave above)

    Then I assume your hosting providers are caching your site too – since that URL is your Child Theme style.css file right there, live, on the Internet.

    Thread Starter ghp123

    (@ghp123)

    @andrew you are a star ??

    you said hosting and I though cloudflare ?? so put that in development mode and so that showed it and now it works ??

    Thanks alchymyth and andrew for you help ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Twenty Fifteen feature image not centred’ is closed to new replies.