Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #111400
    Mike
    Participant

    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:

    link

    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?

    #111419
    Mahesh
    Participant

    @bodycontest: Can you please clarify more. Where do you actually want it? Please post in your site url.

    Regards,
    Mahesh

    #111434
    Mike
    Participant

    Hello. 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.
    content

    when i click on a category link…
    content

    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.
    content

    #111439
    Mahesh
    Participant

    @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,
    Mahesh

    #111444
    Mike
    Participant

    Thank you very much! It is working fine!

    #111446
    Mahesh
    Participant

    @bodycontest: Thank you for your appreciation. Have a nice day!

    Regards,
    Mahesh

    #111457
    Mike
    Participant

    Oh 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?

    fc

    #111506
    Mahesh
    Participant

    @bodycontest: Please post in your site url.

    Regards,
    Mahesh

    #111510
    Mike
    Participant

    my 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.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Caption under Entry Thumbnails’ is closed to new replies.