• I’ve came across a problem recently with code disappearing. I will change the “page” image link (Kubrick theme) in WP, save it out, only to find out the old image is still up and running live on the site.

    I checked the CSS style sheet several times looking for the image link and nothing comes up in WP. It is the weirdest thing. I even used Firebug on the live site to see what was going on. It showed me a line of code that didn’t even exists in my WP CSS. I feel like I’m going crazy.

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi – The version of the file that WP is using is not the one you think it is, unless the CSS you are seeing is coming from a secondary CSS file, from the HEAD section of your theme’s header.php file, or is inserted by javascript or PHP.

    When using Firebug, when you look to the right side of any CSS you are seeing, it displays the source and line # that CSS originates from. Thus you can trace it back.

    If it tells you it comes from your actual stylesheet, put a comment at the top of your stylesheet file and upload it to the server.

    Refresh your homepage and do a View Source. Find full URL of your stylesheet. Paste that URL into the browser address bar and navigate to the page displaying your stylesheet. See if your new comment is in the file. If not, that indicates where you are uploading the file to is not the location WP is pulling the stylesheet from. If your comment is there, on to the next phase of debugging the problem.

    Thread Starter yadayadayada

    (@yadayadayada)

    Hello stvwlf,

    Thanks for responding. When I view source I see this:

    <style type=”text/css” media=”screen”>

    #page { background: url(“https://xxxx.com/wp-content/themes/default/images/kubrickbgwide.jpg&#8221;) repeat-y top; border: none; }

    </style>

    So I assume it was pulling it from the css style sheet. But your right in my actual css this link isn’t even in there. When I view the CSS tab of Firebug I only see this:

    #page {
    background:transparent url(https://xxxx.com/wp-content/themes/default/images/kubrickbgwide.jpg) repeat-y scroll center top;
    border:medium none;
    }

    Doesn’t indicate what line it is…in the HTML tab it just saids
    <div id=’page’>. Is it possible that it is hard coded somewhere?

    thank you for your help.

    Hi

    Every CSS item listed in the right pane of Firebug has, to the extreme right of the line, a source location for that line.
    On the typical blog page it will say something like style.css (line 290), highlighted in blue type.

    The CSS you refer to sounds like it will not be in your stylesheet. doesn’t matter – if it is being applied to a page element at all, Firebug will show you where that element is located. Interpreting what it tells you can sometimes be a bit tricky, but it will tell you.

    When CSS is embedded in the header of the page, Firebug seems to display the name of the page or program as the source, along with the line number, which is the line number in the actual source file. This is your clue.
    Often there are secondary stylesheets with a WP site. Some come from plugins, some styles embedded in the head section, and some themes have more than one stylesheet.
    See if that helps

    Hi,

    I’m having the same problem.
    Firebug refers to a style sheet which is not to be found?
    ————————–
    body { https://www.xxxxx.nl #2 (line 163)
    background-repeat:no-repeat;
    }
    —————————-
    I want the background to repeat. But it only repeats on 1 page.
    —————————-
    body {
    height:100%;
    }
    shutte…r=1.3.0 (regel 36)
    body {
    —————————-
    On this page I am using the NextGEN Gallery. I guess this has someting to do with my problem…but i cant seem to figure it out.

    I feel like I’m going crazy as well.
    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘disappearing code?’ is closed to new replies.