Support » Theme: Coldbox » Post thumbnail

  • Please tell me how to display the description of a picture in a thumbnail in a post and make it perceived as the main picture for robots, for example, rss. That is, so that the miniature of the post has a signature and when sharing the article there is a picture.

    Thank you for the attention.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Toshihiro Kanai

    (@mirucon)

    You can override single.php with your child theme. Add <?php the_post_thumbnail_caption() ?> on line 110. You probably need to adjust some stylings too.

    Thread Starter pulsvlvl

    (@pulsvlvl)

    Thanks a lot it helped.
    When you share a link somewhere, will the picture be picked up?

    Sorry for the importunity, how to make the caption for the picture on all screens centered under the photo.

    Theme Author Toshihiro Kanai

    (@mirucon)

    When you share a link somewhere, will the picture be picked up?

    I’m sorry I don’t really get what that means. What is the link? Since it uses WordPress native thumbnail feature, you can do it as long as it supports.

    To center it, make a HTML element so that you can style it easily like this: <p class="thumbnail-caption"><?php the_post_thumbnail_caption() ?></p>

    And use the CSS code below:

    .thumbnail-caption {
      text-align: center;
    }
    Thread Starter pulsvlvl

    (@pulsvlvl)

    Thanks. The answer to your question. For example, in the rss feed, when there is no photo in the article, he writes – there is no photo. Well, or when you share a post on other sites, usually when there is a picture inside the article, everything goes fine.

    Thread Starter pulsvlvl

    (@pulsvlvl)

    More precisely, paraphrasing, a thumbnail of the entry, somehow the same can be done as an internal picture of the article. For example, news sites have a thumbnail of the post and the main picture of the article.

    Theme Author Toshihiro Kanai

    (@mirucon)

    I think you need to understand what is WordPress thumbnail feature? It looks like you are asking for something that’s far from themes that handle appearance, but plugins because you may want to extend WordPress’s thumbnail feature.

    The code I suggested above just uses native WordPress feature. I think you can expect better answers to your question on the general WordPress forum because I’m not an expert for WordPress usage or finding plugins for your needs.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.