Problem with sidebar in the footer (5 posts)

  1. briceryant
    Posted 5 years ago #

    Hello all,

    I'm new to WordPress, currently using a child theme of Twenty-Ten.

    I've gotten rid of the sidebar in the main section of my site by using (within style.css)

    #main .widget-area ul {
    #main .widget-area ul ul {

    However, on some of my pages I'm seeing widgets in the footer, which I'd also prefer not to have. I found this in the style.css:

    /* Footer widget areas */
    #footer-widget-area {

    However, I don't understand why there's no content there; I tried the same "display:none" technique in the style.css of the child theme without any luck.

    Similarly, I think I might have made a bad code change somewhere because on some of my pages there is the widget footer, whereas on other pages there is a normal footer. Can anyone look into this for me?

    My last question would be how to replace the footer text which redirects to the homepage: it's currently the title of the site (ie. Tin Pan Paradise) however I'd like it to say something else and I might also reroute it. I'm confused as to how to do this because the commands seem to be linked to get_bloginfo (in footer.php i believe) and screwing with anything beyond style.css or basic WP commands is a bit daunting for me.

    Sorry if it's a lot of questions at once, but they all seem interrelated. Any help is appreciated.

  2. Michael
    Forum Moderator
    Posted 5 years ago #

    on this page for instance, the 'footer widget' is caused by:

    (it is actually a sidebar widget which is displaced by a falsely closed div)

  3. briceryant
    Posted 5 years ago #

    </div><!-- #colophon -->
    </div><!-- #footer -->

    </div><!-- #wrapper -->

    That is the HTML in footer.php

    I've tried taking out the > element after div but that does nothing. I tried adding one too (I'm new to this so I tried everything.) If it doesn't help when I take one away, nor does it help when I add one, how can it be a "stray end tag"?

  4. Michael
    Forum Moderator
    Posted 5 years ago #

    the validator cannot 'see' which div is wrong - it only checks for the balance of opening/closing elements.

    the error just means that you probably deleted an opening div somehwere in the code, which leads to a 'stray' closing div.

    you probably need to check each template manually to see if the divs are correct.


  5. briceryant
    Posted 5 years ago #

    It took me a while, but I found the stray div; I edited page.php to get rid of post titles but didn't delete the div further down.

    Thanks for being patient with a beginner, you can close the thread.

Topic Closed

This topic has been closed to new replies.

About this Topic