• Resolved dhjw

    (@dhjw)


    I love this theme but I noticed when there are slow-loading elements, such as Facebook Social for comments and/or AddThis classic share buttons, set up in the body the sidebar doesn’t touch the footer. It seems to touch for a moment until the slow element catches up and increases the height of the content. I was thinking I might have to hack a fixed height on the elements so the sidebar knows to extend. Any other ideas? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dhjw

    (@dhjw)

    The issue is even more noticeable on posts containing large images. On the first load (or Ctrl-F5) sometimes a whole half of the sidebar is cut off. On the second load it isn’t cut off (as much – Facebook Social still causes a smaller cut-off).

    Thread Starter dhjw

    (@dhjw)

    I have mitigated the issue somewhat by applying a min-height value to .entry-content larger than the expected height of the content in the sidebar. Now the sidebar content is never cut off. Unfortunately the issue still occurs on longer posts, and the sidebar background doesn’t extend as far as it should. Hopefully I can figure out a better fix.

    Thread Starter dhjw

    (@dhjw)

    This in child theme is better, especially because it doesn’t affect pages without a sidebar:

    /* sidebar height issue fix */
    #sidebar {
            min-height:2600px; /* adjust as desired */
    }
    
    /* when float is gone, no minimum (good for responsive ads and so any other superfluous height doesn't look bad) */
    @media only screen and (max-width: 824px) {
            #sidebar {
                    min-height:0;
            }
    }

    This will be good enough for my needs. I don’t care if the sidebar is cut off after the set minimum. Thanks for a great theme!

    Thread Starter dhjw

    (@dhjw)

    This may be an even better fix to ensure the sidebar is always stretched to its content:

    #sidebar {
    	overflow:auto;
    	height:auto !important;
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Slow-loading body elements cause sidebar to fall short’ is closed to new replies.