amirelgohary1990 Posted November 13, 2023 Share Posted November 13, 2023 Hello, photos do not appear in the following cases 1- inserting photo inside <picture> tag (In Server Side Only), Working normally in local 2- Not Working when site domain only www.mysite.com ,, Working when site domain = www.mysite.com/index.php <picture class="hover1 runHover2"> <img src="assets/img/central-business-district-singapore.jpg"> </picture> Note: -The path is right, and when opening inspect to check the photo, I find it - Tried to change the path to /assets/img/central-business-district-singapore.jpg or www.mysite.com/assets/img/central-business-district-singapore.jpg , but not solved Quote Link to comment https://forums.phpfreaks.com/topic/317438-tag-not-appearing-photo-in-live-server/ Share on other sites More sharing options...
Strider64 Posted November 13, 2023 Share Posted November 13, 2023 (edited) You might want to check that your CSS is the same on both servers and that is correct. For example if you have `display:none;` the image won't show. Ensure that the file permissions for the image are set correctly. The web server should have read access to the image file. If you're using an Apache web server, check your .htaccess file and server configuration for any rules that might be affecting image loading. Edited November 13, 2023 by Strider64 Quote Link to comment https://forums.phpfreaks.com/topic/317438-tag-not-appearing-photo-in-live-server/#findComment-1612862 Share on other sites More sharing options...
webdeveloper123 Posted November 13, 2023 Share Posted November 13, 2023 are you sure your not missing a: . or: .. before the image path? so: <img src="../assets/img/central-business-district-singapore.jpg"> Quote Link to comment https://forums.phpfreaks.com/topic/317438-tag-not-appearing-photo-in-live-server/#findComment-1612863 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.