- This topic has 8 replies, 2 voices, and was last updated 7 years, 1 month ago by Mike.
-
AuthorPosts
-
March 6, 2017 at 7:39 pm #111400MikeParticipant
Hello, i want to add the caption text under the entry thumbnails, because i use free pictures and must add an link under the pictures. I´ve searched in the internet for a code and have found this:
I will try it, but i dont find the page where the entry thumbnails are called up. Can You say me in which php file i´ve to add the 2. part that was shown in the link?
March 7, 2017 at 9:55 am #111419MaheshKeymaster@bodycontest: Can you please clarify more. Where do you actually want it? Please post in your site url.
Regards,
MaheshMarch 7, 2017 at 1:07 pm #111434MikeParticipantHello. My site url is bodycontest.de, but the page is under constrution and the articles are not online right now. i will go online on the 01. april 2017. But i have made pictures…
On the content site, the caption is shown under the featured image. This ist correct.
when i click on a category link…
the category overview with all articles is opend, an show the featured pictures with some text. but i want under the pictures the same caption as it is at the content site.
March 7, 2017 at 2:40 pm #111439MaheshKeymaster@bodycontent: Add following codes in your child theme’s
functions.php
.function chicago_archive_content_image() { $featured_image = get_theme_mod( 'content_layout', chicago_get_default_theme_options( 'content_layout' ) ); if ( has_post_thumbnail() && 'full-content' != $featured_image ) { ?> <div class="entry-thumbnail"> <?php if ( 'excerpt-image-left' == $featured_image || 'excerpt-image-right' == $featured_image ) { the_post_thumbnail(); } elseif ( 'excerpt-image-top' == $featured_image ) { the_post_thumbnail( 'chicago-single' ); } echo '<br />'; echo get_post(get_post_thumbnail_id())->post_excerpt; ?> </div> <?php } }
Regards,
MaheshMarch 7, 2017 at 4:33 pm #111444MikeParticipantThank you very much! It is working fine!
March 7, 2017 at 4:49 pm #111446MaheshKeymaster@bodycontest: Thank you for your appreciation. Have a nice day!
Regards,
MaheshMarch 7, 2017 at 7:46 pm #111457MikeParticipantOh i´ve forgotten that in the featured content under the normal content also pictures are shown and there isn´t a caption too… Can you please help me once again?
March 8, 2017 at 12:10 pm #111506MaheshKeymaster@bodycontest: Please post in your site url.
Regards,
MaheshMarch 8, 2017 at 1:09 pm #111510MikeParticipantmy site url is http://www.bodycontest.de. the featured content ist online, but the articles are not online. so the links aren´t working. i hope it´s ok so.
-
AuthorPosts
- The topic ‘Caption under Entry Thumbnails’ is closed to new replies.