The background image is not displaying when i publish me site using github. #23579
-
Hello Everyone! I am facing problem in the site published using github. The background image is not getting displayed when i publish the site. However, it is displaying in my local computer. The backround image is named as ‘4’ and is present in images folder. I am not able to get where is the problem occuring and how to resolve it. The link to my published site is: https://aayushibansal2001.github.io/Blog-Page/ The link to my github repository is:https://github.com/aayushibansal2001/Blog-Page |
Beta Was this translation helpful? Give feedback.
Replies: 17 comments 3 replies
-
Change your file format of image 4.JPG to 4.jpg in your images folder. This error is occuring because you have used 4.jpg in your css files… |
Beta Was this translation helpful? Give feedback.
-
How do we convert from .JPG to .jpg? Aren’t both the same? Also i have tried doing 4.JPG in my css file, but then also the problem didn’t resolve. |
Beta Was this translation helpful? Give feedback.
-
I think it is solved now… And yes both .JPG and .jpg are same extensions but in some OS it became case sensitive and hence always preferable to use lower case extensions… |
Beta Was this translation helpful? Give feedback.
-
Yes. The problem is resolved now. Thanks for the help. |
Beta Was this translation helpful? Give feedback.
-
Hello, I am facing more or less a similar problem, because my profile picture is not displaying when I publish my website and it shows like this: I have saved it as “profile-picture.png” in the images folder, so why does it not work? Please help me! Link to website: https://valentina-caponi.github.io/my-profile/ Thank you!! |
Beta Was this translation helpful? Give feedback.
-
you should write src=“profile-picture.png” instead of src=“images/vals.jpeg” |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for answering! I have done that. I have written src=“images/profile-picture.png” on HTML, but the image still does not show. And do you know why when I have to load the images folder on Github it does not accept the folder but only the image? |
Beta Was this translation helpful? Give feedback.
-
Try writing src=“profile-picture.png” and not src=“images/profile-picture.png” because you don’t have images folder uploaded. And also the folders are not accepted. so to make the folder you can click on the create file button and and the name of the folder and press enter. Then add any file and commit that. After that you can add the images in that folder created. I hope it helps. |
Beta Was this translation helpful? Give feedback.
-
Thank you a lot! It actually worked. However, I don’t understand why it didn’t accept my images folder. I had created it and added the image inside as you said. Not sure. |
Beta Was this translation helpful? Give feedback.
-
I am facing same issue. In my case .jpg and .JPG are not the problem though in github pages background image is not showing. here is my code: .showcase-area{ Link: https://den864.github.io/restaurant-web/ thank you |
Beta Was this translation helpful? Give feedback.
-
It looks like a relative path issue. The browser is looking inside the
|
Beta Was this translation helpful? Give feedback.
-
Yeah it’s working. I almost forget that btw thanks :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
I have similar problems. I changed the file from .jpG to .jpG in my GitHub repo. Still no changes reflect… still blank… Link to my pages: FAMILY INFO Link to the repository :
GitHub - excela01/myFamilyInfoBasic: just a little family game to entertain...just a little family game to entertain members of my family, by putting in their names and gettting certain outputs - GitHub - excela01/myFamilyInfoBasic: just a little family game to entertain mem... |
Beta Was this translation helpful? Give feedback.
-
I’m also having this problem. I’ve tried a number of different paths but I noticed in chrome developer tools under source the only image file that is loading onto the site it my logo.png file. All pictures with jpg formatting won’t show. |
Beta Was this translation helpful? Give feedback.
-
nvm solved it. I thought I tried …/images/teacher.jpg but i guess not. Working now! |
Beta Was this translation helpful? Give feedback.
-
Hi , |
Beta Was this translation helpful? Give feedback.
-
The background image perfectly shows in localhost but doesn't show in Github ... my github website- https://santoshjobs2023.github.io/myportfolio/ my repositry - https://github.com/santoshjobs2023/myportfolio plase help me here |
Beta Was this translation helpful? Give feedback.
Change your file format of image 4.JPG to 4.jpg in your images folder. This error is occuring because you have used 4.jpg in your css files…