⏱ Limited Time Offer

How to set the height and width of the custom placeholder image

After adding a custom placeholder image for your team members, you can do it with the following custom codes if you want to set a custom height and width for that placeholder image. Two custom codes are available, one for the height and the other for the image’s width. Simply add the code to your current theme’s functions.php file.

function sptp_placeholder_image_width() {
    return 300; // in pixel
}
add_filter( 'sptp_placeholder_image_width', 'sptp_placeholder_image_width' );
function sptp_placeholder_image_height() {
    return 300; // in pixel
}
add_filter( 'sptp_placeholder_image_height', 'sptp_placeholder_image_height' );