Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #351280

    Hi there,

    what´s your suggested way to add image sizes to an Enfold child theme? The regular WP way described here ?

    http://codex.wordpress.org/Function_Reference/add_image_size

    Or is there any other nice option (maybe a simple plugin?)

    Cheers
    Michael

    #351286

    In case someone needs that as well. I did it like that. Add this to the child themes functions.php

    /* additional image size(s)
     *
     */
    
    // add new size
    add_image_size( 'bigger-square', 250, 250, true );
    
    // make the new size available in the media library (and image element etc.)
    add_filter( 'image_size_names_choose', 'my_custom_sizes' );
    
    function my_custom_sizes( $sizes ) {
        return array_merge( $sizes, array(
            'bigger-square' => __( 'Bigger Square' ),
        ) );
    }
    #351289

    Hi!

    Thank you for sharing your solution Michael and glad you figured it out! Have a nice weekend!

    Regards,
    Yigit

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Best way to add image sizes’ is closed to new replies.