• Hello!
    I am using the colormap theme and I am wondering how to add some credit/caption either above or under the featured image.

    Earlier I managed to do so with this code
    <?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?>
    and the text appeared above the photo on the post
    http://www.popmag.no/2015/07/22/meela-debuterer-med-synthbasert-poplat/

    But after they updated their theme it disappeared and now I can’t seem to find out how to add the caption again HAHA!

    So if anyone know how to add caption to this image with a CSS or php code please tell me 🙂
    Because I dont know how to credit the photogtaphrer, please help 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just post it back into the template file that’s used for that page. But, the same thing will happen when the theme is updated next.

    The right way to do it is to create a child theme, and set that file in the child theme with the updated line, and that will save it from any future updates.

    Thread Starter Joakimmyhre

    (@joakimmyhre)

    The problem is that I am not sure what file it is!
    Is it content-single which is for the single post? Cause I dont want it to appear in the categories page.

    why isn’t there any plugins to do this

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Featured Image – Add Credit’ is closed to new replies.