• Azizul Karim

    (@azizul-karim-aec)


    I am using latest theme version. I want to upscale featured image size. I want featured image size in 784px which is now 750px. I added this code in my child theme functions.php

    function child_theme_setup() {
    	add_image_size( 'sparkling-featured', 784, 434, true );
    }
    add_action( 'after_setup_theme', 'child_theme_setup', 11 );

    but this is not changing. Please help me !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Curious why not just add a new css rule to adjust it instead?

    Hi @tiger,

    I hope you are well today and thank you for your question.

    Could you please try using the following code instead which is working fine on my test site?

    function child_theme_setup() {
    	add_image_size( 'sparkling-featured', 784, 434, true );
    }
    add_action( 'after_setup_theme', 'child_theme_setup', 99 );

    Best Regards,
    Movin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to upscale featured image size ?’ is closed to new replies.