• I’m trying to figure out 2 things inside this theme:

    1) How to display what’s entered in the Caption field instead of what’s entered in the Title field

    and

    2) How to position what’s posted lower (possibly even below the photo) so that it looks better on mobile.

    I’ve identified the block of code (below) that determines what is posted as a caption with each image — right now it’s what is entered in the Title field instead of Caption. I tried changing “post-title” to “post-caption,” which altered the layout but did not display the caption.

    echo "\n",'<ul class="slides">',"\n";
    
    		foreach ( $attachments as $id => $attachment ) {
    			$attachmentimage = wp_get_attachment_image( $id, 'gallery-slider');
    			$description = $attachment->post_title;
    			echo "\t",'<li>',"\n";
    			echo "\t\t",$attachmentimage.apply_filters( 'the_title', isset( $parent->post_title ) );
    			if ( isset( $description ) )
    				echo "\t\t",'<div class="flex-caption">'.$description.'</div>';
    			echo "\t",'</li>',"\n";
    		}
    		echo '</ul><!-- .slides -->',

    Then if anyone can help with lines of code to add to determine positioning of the caption, that would be great help.

    Link for example (check it out on mobile to see caption position issue there): http://dev.easternsurf.com/photos/swell-gallery/lets-dance-january-swell-gallery/

    Thanks!

The topic ‘[Theme: Superblog] Caption display/positioning’ is closed to new replies.