How to add php to theme to show alt attributes

Try adding these codes to your theme’s function.php file: function isa_add_img_title( $attr, $attachment = null ) { $img_title = trim( strip_tags( $attachment->post_title ) ); $attr[‘title’] = $img_title; $attr[‘alt’] = $img_title; return $attr; } add_filter( ‘wp_get_attachment_image_attributes’,’isa_add_img_title’, 10, 2 );

File upload size limit in wordpress and php.ini limit

I checked and it seems that your host infinityfree.net block custom php settings. infinityfree.com doesn’t exist. https://forums.cpanel.net/threads/how-can-i-protect-php-ini-with-suphp.127537/#post-554049 https://bobcares.com/blog/disable-custom-user-ini-easyapache-4/