[Support request] image description

Home Forums Support [Support request] image description

Home Forums Support image description

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #239817
    Mario Geier

    How can I display the description of a picture in the article?

    Mario

    #239888
    Tom
    Lead Developer
    Lead Developer

    When you’re about to insert the image into your content, you’ll see some options above the “Insert into post” button.

    You can add your description to the “Caption” field.

    #239895
    Mario Geier

    sorry, i mean the fautered Image at the top from a article.

    #239962
    Tom
    Lead Developer
    Lead Developer

    Ah, not an easy thing to do, but it is possible: https://generatepress.com/forums/topic/caption-for-post-thumbnails/

    #240000
    Mario Geier

    Where can i find this? single.php, content.php?

    <?php the_post_thumbnail(”); ?>

    #240004
    Tom
    Lead Developer
    Lead Developer

    Those are in the root folder of the core theme, you can copy them to your child theme if you’d like to alter them.

    However, none of the solutions in the topic I linked to alter those files – all of those solution simply require you to add the functions using the instructions on this page: https://generatepress.com/knowledgebase/adding-php-functions/

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