Home Forums ASE Support Chapter Minimum Height Reply To: Chapter Minimum Height

#13550

Hyun Supul

Keymaster

Hi you can use the following filter PHP code to change the default height of Chapter Component

function example_callback( $args ) {
	if ($args['minheight'] == '260px') {
		// if set to default, change the default value
        $args['minheight'] = '60px';
	}
    return $args;
}
add_filter( 'aesop_chapter_defaults', 'example_callback' ); 

You can put the above code into your theme’s functions.php file. Or you can use a custom PHP plugin that would lets you do the same. The former is the simplest way.

You may notice that when you change the height to 60px the chapter title goes out of the bound. You can use the following custom CSS code to fix that issue. I recommend Simple Custom CSS plugin.

.aesop-article-chapter .aesop-cover-title {
    position:inherit;
}
  • This reply was modified 4 years, 6 months ago by Hyun Supul.
  • This reply was modified 4 years, 6 months ago by Hyun Supul.