Commit e62ca67b authored by numahell's avatar numahell
Browse files

Add image size for book cover

parent a3dbcdd9
......@@ -47,6 +47,9 @@ require_once( 'library/sticky-posts.php' );
/** Configure responsive image sizes */
require_once( 'library/responsive-images.php' );
/** Configure custome image sizes */
require_once( 'library/images.php' );
/** ACF plugin Configuration */
require_once( 'library/acf-options.php' );
......
<?php
/**
* Add new images sizes
*
* @package WordPress
* @subpackage CommonsWPTheme
* @since CommonsWPTheme 1
*/
// Add additional image sizes
add_image_size( 'book-cover', 150 );
// Register
add_filter( 'image_size_names_choose', 'communs_wp_sizes' );
function communs_wp_sizes( $sizes ) {
return array_merge( $sizes, array(
'book-cover' => __('Book cover'),
) );
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment