Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter michaelvcuomo

    (@michaelvcuomo)

    Never mind, I was able to figure it out. Below is the code in case anyone is interested:

    add_action( 'genesis_before_entry_content', 'pbcLesson_details_meta' );
    function pbcLesson_details_meta() {
      genesis_custom_field('pbcLessons_length');
    }
    Thread Starter michaelvcuomo

    (@michaelvcuomo)

    Ok, so I’ve done a little digging in the code and found this. Not sure if it is helpful or not.

    The functions.php file has a segment for featured image below:

    /**
    	 * Enable support for post thumbnails.
    	 */
    	add_theme_support( 'post-thumbnails' );
    
    	/**
    	 * Add the various thumbnail sizes.
    	 */
    	// Post thumbnails
    	set_post_thumbnail_size( 705, 435, true );
    	// Hero Image on the front page template
    	add_image_size( 'motif-hero-thumbnail', 1140, 610, true );
    	// Full width and grid page template
    	add_image_size( 'motif-page-thumbnail', 1072, 435, true );
    	// Grid child page thumbnail
    	add_image_size( 'motif-grid-thumbnail', 334, 233, true );
    	// Testimonial thumbnail
    	add_image_size( 'motif-testimonial-thumbnail', 90, 90, true );

    Now there are four page templates: default, full-width, grid, and front-page. The default template (I’m assuming its content.php) calls the post_thumbnail() here:

    <?php if ( '' != get_the_post_thumbnail() && ! post_password_required() ) : ?>
    	<div class="entry-thumbnail">
    		<?php the_post_thumbnail(); ?>
    	</div><!-- .entry-thumbnail -->
    	<?php endif; ?>

    The other templates do not have this. Is that the problem? Is it using the default set_post_thumbnail_size( 705, 435, true ); on these other templates that have larger featured images?

    Thanks again for your help

    Thread Starter michaelvcuomo

    (@michaelvcuomo)

    Sure,

    I published them and you can find the pages here: michaelvcuomo.com/mvc-u/

    The MVC U page is grid layout and that featured image is distorted. I’ve placed the same exact picture underneath it and it is crystal clear, so there isn’t an issue with the image. I’ve added two child pages – one default and the other full width – and both have the same exact image. The default featured image comes out fine but the full-width is distorted.

    Thanks for your help.

    PS the tumbnails look fine.

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