• Resolved pchuprina

    (@pchuprina)


    Hello all,
    A errant “1” has started appearing in the upper right hand side of my content area! It can be seen at Chuprinacreative, at my category archive,, and at my monthly archives. It does does not yet appear on my individual archive pages, yet to be styled and finnished by me.

    I understand it is a errant number in my code, but I have looked and looked into a fit of frustration. I know I’ve probably missed it, but any ideas where to give a close look, or the best way of hunting it down?

    Thanks in advance.

    PChuprina

Viewing 6 replies - 1 through 6 (of 6 total)
  • This may not have anything to do with it, but I have never seen margin: -10px; before. What’s that supposed to do? It’s in your .postwrap class, which is also where the errant 1’s are showing up.

    It is happening on your archive pages but not on individual posts. The difference I see right away is that individual posts are .postwrap H1 and the other pages are .postwrap H2 for that area.

    seems like it would have to be at end of theme’s archives.php or category.php if you don’t have archives.php

    Thread Starter pchuprina

    (@pchuprina)

    Hi SS_Minnow.

    Negative numbers in margins in css style sheets are allowed, although I have changed it in this case. Check out this page: CSS Negative Margins – Part One.

    Unfortunately the “1” is probably a errant left over number lying in the php code somewhere. I unknowingly created it by some sloppy and/or late night experiment/change on the code itself. Finding it can be like finding a needle in the haystack.

    Thread Starter pchuprina

    (@pchuprina)

    Hi Samboll,

    Looked where you thought it may be with no luck. This is a good case for cleaner coding! lol.

    A frustrated PChuprina

    Moderator cubecolour

    (@numeeja)

    It seems to be appearing immediately before:
    <div class="wp-pagenavi">

    Can you check your theme files to check that the code to insert the wp-pagenavi doesn’t have a stray ‘1‘ before it?

    It should be something like:
    <?php if (function_exists('wp_pagenavi')) wp_pagenavi();>

    Thread Starter pchuprina

    (@pchuprina)

    Hello all,

    The errant “1” was actually in my wp-pagenavi.php file. It was actually in plain view, right in front of the opening <?php tag. Like I said before, this is a perfect reason for cleaner coding and code! I don’t beleive how much time I wasted.

    Thanks for everyone’s input.

    PChuprina

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘An errant “1” appearing in blog’ is closed to new replies.