[Support request] Featured image alignment not working with child theme

Home Forums Support [Support request] Featured image alignment not working with child theme

Home Forums Support Featured image alignment not working with child theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #899698
    Ryan

    Hello!

    I am using the “marketer” generatepress theme. When working on the site layout i found out that using a custom excerpt removes the “read more” button. The solution to this was to have a child theme with the following in functions.php:

    add_filter( 'wp_trim_excerpt', 'tu_excerpt_metabox_more' );
    function tu_excerpt_metabox_more( $excerpt ) {
    	$output = $excerpt;
    	if ( has_excerpt() ) {
    		$output = sprintf( '%1$s <p class="read-more-container"><a class="button" href="%2$s">Read more</a></p>',
    			$excerpt,
    			get_permalink()
    		);
    	}	
    	return $output;
    }

    However, after applying this, my posts featured images are now showing full size instead of the scaled down 300px width it was before. No matter what I select for “left, right, or centered” it shows the fullsize image and then the excerpt below it.

    #899917
    David
    Staff
    Customer Support

    Hi there,

    would you be able to flush and disable Autoptimize so i can see if there is a CSS conflict.

    #903963
    Ryan

    Done. Sorry for the delay. Been busy with work.

    #904231
    David
    Staff
    Customer Support

    Can you deactivate the child theme, then go to the Customizer > Additional CSS. Cut and paste that CSS into your child theme style sheet.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.