Forums

[resolved] Side bar falling to bottom of page (13 posts)

  1. pauli2k
    Member
    Posted 4 months ago #

    Please i would really appreciate any help. I have being trying to look for solution everywhere but nothing is working.

    I have read related posts but can't seem to be able to get it right.

    This is the link: http://revitolcellulitecreamreviewssite.com/contact

  2. pauli2k
    Member
    Posted 4 months ago #

    My side bar keeps falling to the bottom of the page. I really do not know how to go about it. http://revitolcellulitecreamreviewssite.com/contact

  3. alchymyth
    The Sweeper
    Posted 4 months ago #

  4. pauli2k
    Member
    Posted 4 months ago #

    Thanks a lot. The problem now is how to fix the validation errors. Please how do i locate the html of this particular page?

  5. alchymyth
    The Sweeper
    Posted 4 months ago #

    the html for a static page comes from a mix of theme templates and the page content;

    http://codex.wordpress.org/Theme_Development

    as both 'contact' and 'disclaimer' have the same problem, the error might be in page.php of your theme.

    particular chek that all html tags are closed properly, and that there are no unmatched opening or closing tags.

    in your case, the dropping sidebar is mainly caused by this line:

    <div class="postwrap" style="width: 917px;">

    where the added width style does not leave any room for the sidebar.

    this:
    <div id="sidebar" style="width: 8px;">
    also does make no sense.
    if you don't want a sidebar in static pages, remove the <?php get_sidebar(); ?> code from page.php.

  6. pauli2k
    Member
    Posted 4 months ago #

    Please i have being trying to fix this since morning and it is really giving me a tough time. Don't know if you can help me fix it. The Html is shown below:

    [Code moderated as per the Forum Rules. Please use the pastebin]

  7. alchymyth
    The Sweeper
    Posted 4 months ago #

    start by removing style="width: 917px;" from the .postwrap div -

    and do paste the code of page.php into a pastebin.com

    fixing html and css errors is not the main focus of this WordPress forum.

  8. pauli2k
    Member
    Posted 4 months ago #

    Please this is how that line of code looks like

    <div class="postwrap" style="width:<?php echo getPostWidth().'px';?>;">

    another one like this

    <div class="post" id="post-<?php the_ID(); ?>" style="padding-bottom: 20px;">

    and the last one

    <div class="corner-right" style="width:<?php echo getPostWidth(1).'px';

    Please i don't know which one to edit

  9. pauli2k
    Member
    Posted 4 months ago #

    Thanks a lot, the last comment worked. Am so thankful. You have really made my day.

    Please just one more thing; if you look at my site, under categories at the side bar you will see that the category listings are not appearing in a single sentence.
    Instead they appear one word per line. Please how do i fix this?

  10. alchymyth
    The Sweeper
    Posted 4 months ago #

    start by editing this one:

    <div class="postwrap" style="width:<?php echo getPostWidth().'px';?>;">

    into:

    <div class="postwrap">

    that should get the sidebar into its place.

    (however, there could be a reason behind these codes; and they might refer to some dashboard settings options ?)

  11. pauli2k
    Member
    Posted 4 months ago #

    Thanks a lot, i did that and it worked. The side bar is now in place.

    But please there is one more thing, if you look at my site, under categories at the side bar you will see that the category listings are not appearing in a single sentence.
    Instead they appear one word per line. Please how do i fix this?

  12. alchymyth
    The Sweeper
    Posted 4 months ago #

    try to explore sidebar.php - there seem to be more of the weird styles with widths...

  13. pauli2k
    Member
    Posted 4 months ago #

    Thanks a lot. It worked. I tried exploring the sidebar.php like you said. You have really made my day and am really thankful.

Reply

You must log in to post.

About this Topic

Tags