WordPress.org

Ready to get started?Download WordPress

Forums

why no background in firefox?? (14 posts)

  1. JSDavis82
    Member
    Posted 7 years ago #

    Could anyone take a look and see why the white background in my "rap" div isn't showing up below the header on POST PAGES? It shows up on the main index, but not on pages, post pages, category archives, etc.

    Also, if anyone could tell me why my sidebar list is bulleted and how to fix it, I would greatly appreciate it.

    my site is http://www.divinenobodies.com/blog

    thanks

  2. Mysmasken
    Member
    Posted 7 years ago #

    I see white background in Firefox...

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    I see white BG too.

    The reason you have bullets on the side is because you're using LI's to hold the widgets in the sidebar without a corresponding UL to hold those. The fix for this is to examine the widget setup function call in your functions.php file.

    At the top of your functions.php in your theme, you should find a call to register_sidebar() or register_sidebars(). What does that call look like? Can you post it here? Make sure you put it in backtick marks so we can read it. :)

  4. moshu
    Member
    Posted 7 years ago #

    I see white bg ONLY on the main page as the OP says. No bg on any other view: single, archives, cats etc.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Ahhh! Okay. I see it too then.

    The end tag for your rap or container DIV is omitted in your single post pages. I suspect this is because you don't have single.php (or archive.php or whatever it is) including the footer, as it's missing as well on those pages.

    W3C Validator - Use it. Love it.

  6. JSDavis82
    Member
    Posted 7 years ago #

    Wow, thanks for the help so far.

    otto, function.php call is:
    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar();
    ?>

    I don't see the omitted end tag you mentioned. Can you help? How do I view my source where I can see the line number that W3C mentions?

    Moshu, what do you mean by OP? Do you mean that there is no bg set on the other pages and there IS on the index?

  7. moshu
    Member
    Posted 7 years ago #

    OP = original poster = you :0

    On the validation page check the Show Source box and click Revalidate. Every error line # will become a link that takes you exactly to the location of the error.

  8. JSDavis82
    Member
    Posted 7 years ago #

    lol, I'm a forum (and wordpress) noob :-/

    is there a way that I can get a default page.php or something? I see what yall are saying about what the missing end div tag the validator found, but when I edit my single.php, the end tags seem to be fine.

    Grrr, this is frustrating, but again, thanks for the help.

  9. JSDavis82
    Member
    Posted 7 years ago #

    otto? anyone? can someone help me finish resolving these issues?

  10. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Try this in your functions.php instead of that bit your posted before:
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>'
    'before_title' => '<h2>',
    'after_title' => '</h2>',
    ));

    That should get rid of the spurious LI's.

    I don't see the omitted end tag you mentioned.

    Well, you wouldn't, would you? I mean, that's kind of what "omitted" means. It's not there. :)

    The problem is that the footer is missing on your single pages. Compare your index.php page to the other pages like single.php or archive.php and see what the difference is around the footer area.

  11. JSDavis82
    Member
    Posted 7 years ago #

    thanks for the reply otto, hopefully I'll get these issues resolved quickly. Regarding my lack of footer on single pages: I've posted my index.php and single.php in the pastebin, mind taking a look at em?

    Regarding the sidebar list issue, i tried the code you suggested in my functions.php and got this error:

    "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/content/j/a/m/jamiepalmer/html/blog/wp-content/themes/urbandecay/functions.php on line 6"

    Just to be sure I got ur function right, here's what I pasted in my functions.php:

    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>'
    'before_title' => '<h2>',
    'after_title' => '</h2>',
    ));
    ?>

    sorry for the confusion and my incompetence, but thanks sooo much for the help!

  12. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Doh! I messed up the commas. Here's the correction.

    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h2>',
    'after_title' => '</h2>'
    ));
    ?>

    As for the rest, what's in your footer.php file?

  13. JSDavis82
    Member
    Posted 7 years ago #

    ah, the sidebar bullets have all gone away with that new function...except for the "links" (blogroll) section of the dynamic sidebar. Any idea why a bullet still remains by that header?

    here's the footer.php:

    <?php
    include_once "fn.inc";
    ?>
    <?php
    global $shwSpr;
    if ($shwSpr) {
    ?>
    <div id="footer">
    <?php shwSpr();?>
    </div>
    <?
    }
    ?>

    again, otto, thanks soooooo much for your help.

  14. JSDavis82
    Member
    Posted 7 years ago #

    otto, ya there? I've alllllmost got it fixed...

Topic Closed

This topic has been closed to new replies.

About this Topic