• CCC

    (@chanecullens)


    Hi
    Wordpress is already creating 3 sizes from settings.
    Now Qubely is creating 3 more sizes
    Can you delete this code or make it an option somewhere?

    thanks

    function qubely_blog_posts_image_sizes()
    {
    add_image_size(‘qubely_landscape’, 1200, 750, true);
    add_image_size(‘qubely_portrait’, 540, 320, true);
    add_image_size(‘qubely_thumbnail’, 140, 100, true);
    }
    add_action(‘after_setup_theme’, ‘qubely_blog_posts_image_sizes’);

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello,
    you are too early with your removal. So you have to defer the actual removal, for instance like so: In your functions.php file add this code,

    add_action( 'after_setup_theme', 'remove_parent_theme_stuff', 0 );
    
    function remove_parent_theme_stuff() {
    
        remove_action( 'after_setup_theme', 'qubely_blog_posts_image_sizes' );
    }

    I hope your problem will be solved.
    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Three add_image_size calls seems excessive’ is closed to new replies.