• A theme I’m using (WPMU-Nelo) has decided that a lot of white space and a link box without an image or text ought to appear below the navigation bar, where it’s not supposed to be. I think this is because I put too large a custom logo in the header; when I deleted that image, the link and space never went away. (BTW: I’m not very good with HTML and CSS by am striving to learn.)

    Spotty support on another site traced the problem to a piece of code that starts with <div-id=custom-img-header … />. And when I delete that code in Firebug it eliminates what’s wrong with the site. So that’s progress.

    My questions are these:

    1) How do I find that little piece of code in all the files and folders for the site (accessed via cPanel). I can find it on Firebug, is there some thing I’m missing in the way that Firebug might help me find where the code actually is stored; or is there some other secret to finding it. Otherwise, it’s a needle in a haystack.

    2) Should I be eliminating that code? I’m wondering if I’ll lose the ability to install a custom image header if I eliminated it. Should I move it instead, say, up to somewhere in the header area?

    Thanks,
    Ken

Viewing 1 replies (of 1 total)
  • Generally, you should not be modifying any theme files – changes should be made in a Child Theme. Otherwise your changes will be overwritten and lost when the theme is updated.

    The location of where that code is depends on where it is in your site and what theme you are using and what template file(s) that page is using. Sounds like it’s probably in the header.php file – which is the same on every page (unless you’ve done something else to change that).

Viewing 1 replies (of 1 total)

The topic ‘How can a find a bad code in a theme?’ is closed to new replies.