Link to home
Create AccountLog in
Avatar of APD Toronto
APD TorontoFlag for Canada

asked on

Recovery of header.php

Hi Experts,


I inheritted to maintain www.adaptabilitycanada.com and the header.php got corrupt on May 8 in the afternoon, and there's no backup (oh what fun).


I restored the original header.php from the PE Services theme, andd it "looks" 90% ok, but the header is a bit wacky. This looks like a CSS issue, BUT the header.php is the only file that was changed, so I assume that the developer changed the original header.php file without doing a child theme. I also assume they used inline css, based on the issue.


First of all, I was told about Wayback Machine, but  looks like there's no Visual/CSS captured, which defeats my goal. https://web.archive.org/web/20230405010724/https://www.adaptabilitycanada.com/


Secondly, when adaptabilitycanada.com first loads, it does look fine for 2 secs, then seems like the logo div is too wide.


User generated image


Of course, I can just add the inline css, but I wonder if that is really the issue?


Thanks!


Avatar of Noah
Noah
Flag of Singapore image

Hi!

You can try comparing the CSS in the original header.php file to the CSS in the current version to see if there are any differences. You can put the current and old code in a website such as https://www.diffchecker.com/ to compare them more efficiently.

If you add this in Appearance > Customize > Additional Css

#pe-bar-left { width: 20%; }

Open in new window

It should make it match back to before the new header.php was put on.

Avatar of APD Toronto

ASKER

Sorry, I was little sick.


Before I apply the above fix, how do I get rid of the two orange lines over Home and Facility Solutions?

ASKER CERTIFIED SOLUTION
Avatar of Heather Ritchey
Heather Ritchey
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer