• Resolved jhkb

    (@jhkb)


    Hi all

    Sorry for this inexperienced mess up. I’ve been adapting the kubrick theme and have replaced the kubrickheader.jpg with kubrickheader.png. This has been fine until I noticed that kubrickheader.jpg was still loading on the page, and really slowing down the site.

    I’ve been trying to delete any references to the jpg image by editing header-img.php and functions.php and have somehow caused the whole site to break as so:

    https://www.karenedwardsceramics.co.uk/wp

    I have copied and pasted the original functions.php and header-img.php files from a fresh download and this doesn’t seem to fix it. As i’m a complete novice with php I really can’t see where i’m going wrong.

    I’d be so grateful for any help, primarily with getting the site back where it should be, and eventually what I SHOULD be editing to remove kubrickheader.jpg.

    Thanks so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • shot in the dark, but make sure you don’t have a closing ?> in your functions file or that there is no white-space after the ?> in any of your modified php files.

    Thread Starter jhkb

    (@jhkb)

    Thanks for your reply! I did have a closing ?> tag in the functions file and a line of space in the others; i’ve taken these out now and I’m still getting the same problem.

    When I inspect the page in Chrome I get an ‘unmatched </div> encountered. Ignoring tag’ message, which seems to occur in the footer.php file. Not sure if that’s the problem but i’m I can’t seem to remedy it.

    Does it help if I post any of my php files here? Just i’m not entirely sure where the error is coming from. I’ve uninstalled wp-HTML-compression and wp-js plugins just in case, but this didn’t help either.

    Thread Starter jhkb

    (@jhkb)

    Seems to be fixed now! Think taking out the white spaces and replacing my edited files did the trick, thanks for the advice.

    Still unsure on how to stop the old kubrickheader.jpg file from loading, as its the biggest element on the page. I’ve deleted the actual image file but there’s some code in header-img.php (I think) that’s still trying to load it. Do I need this file, or is it ok to delete?

    Jess

    Moderator James Huff

    (@macmanx)

    Go to Appearance/Editor in your admin panel and open the Stylesheet. Look for this section:

    #header {
    background: #73a0c5 url('images/kubrickheader.jpg') no-repeat bottom center;
     }
    Thread Starter jhkb

    (@jhkb)

    Thanks so much, that worked perfectly! I was making it far too complicated.

    Jess

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Help – I’ve broken something!’ is closed to new replies.