Background image not displaying

Website URL - ve5wil.ca

Error Message - no error message

until recently when the page loads a background image was displayed. now the background images flashes briefly and a solid color background appears

this occured after i added a google SEO code. But even having removed the code, i still get the solid background.

All these are not helpful.
Show us what is happening now vs what you are supposed to see

go to website- you will see a blue background on every page not the background image that is supposed to be there. the pages had a collage image that used to load as the background.


left side is what shows, right side is what is supposed to show

Are you sure this is correct?

image

Looks very messy
I believe should be <style> not </style>

2 Likes

This can be solved with css, if you don’t have any idea about it then you can youtube or google it.

1 Like

i play with that, and the background image shows, and only the footer. no header or body

Please check your code. Very messy to me

image

Figure it out yourself

2 Likes

the code as uploaded and viewed from the file manager

<DOCTYPE HTML>
<html lang="en">

<head>
	<?php include'includes/head.php';?>
    <style>
    body {
  background-image: url(general%20assets/background2.jpg);
}  
</style>
</head>

<body>
	<?php $page ='home'; include'includes/navbar.php';?>
     <style>
    body {
  background-image: url(general%20assets/background2.jpg);
}

You may refer to this

4 Likes

02.10.2022_23.40.24_REC

@KangJL told you everything !

Your PHP files include head and navbar and who knows what else
and the final product is that you have a broken HTML document.
So you need to check several PHP files that are included in the generation of the HTML page.

Look at the source code of your site through a browser
copy that source and paste it here The W3C Markup Validation Service
and correct all mistakes.

Right now, the validator didn’t even want to continue the verification because it encountered many errors

4 Likes

I appreciate everyones replies, and help. I’ll put the code through the validation service.

im trying to learn php and newer code styles on my own. what i dont understand is, for the first few months the page was up, it responded exactly as expected, then overnight, the background image just stopped appearing. -( note - altered the back ground image code on the index page last night, and now the back ground images are loading as expected again on all pages.)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.