Forums

[resolved] Twenty Ten sidebar layout issue affecting only Pages and some browsers (10 posts)

  1. rmatney
    Member
    Posted 1 year ago #

    On my site, using the TwentyTen theme, the sidebar content drops to bottom of page on all Pages. Issue does not affect Posts, and also is not reproduceable in Safari browser. Any troubleshooting advice?

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    for instance, use the http://validator.w3.org/ to check the html code of your pages;
    compare it to the validation report of your single posts.
    this might give you a hint to what might be wrong.

    make sure that all divs in page.php (which also uses loop-page.php) are closed properly;

    for any direct suggestions, please post a link to your site.

  3. rmatney
    Member
    Posted 10 months ago #

    Big thanks, alchymyth, for taking time to respond. Very appreciated. The site in question is socialwebstrategies.com

    1. I checked page.php and loop-page.php, and all divs are closed.
    2. I ran the validator there were 8 errors and 2 warnings (and perhaps more in waiting as errors in a subtree are suppressed).

    Do you have any guidance on which, if any of those errors might be causing problem?

  4. rmatney
    Member
    Posted 10 months ago #

    To continue troubleshooting, I removed all widgets from the sidebar, and was going to add them back one-by-one to see if I could trace the issue to one. However, when I removed all widgets from the Primary and Secondary Widget areas, there appeared a couple more widgets in the sidebar on the pages-as-displayed, but not on the Admin > Appearance > Widgets page. Where are these phantom widgets (Search, Archives, Meta) coming from, I wonder? Still digging.

  5. rmatney
    Member
    Posted 10 months ago #

    Learned where those widgets are coming from, they are hardcoded into sidebar.php to display in absence of anything else. Still don't know why they are droppping so low in display.

  6. alchymyth
    The Sweeper
    Posted 10 months ago #

    Do you have any guidance on which, if any of those errors might be causing problem?

    the problem is that in this case the validator stops after some errors;

    the drop of the sidebar (on pages and single posts) seems to be caused by the 'simple bookmarking' plugin (not finaly confirmed), which leaves a closing a tag broken;

    the plugin code in line 41 is supposed to remove the pipe character from after the last bookmark:

    $bwidget = substr($bwidget,0,strlen($bwidget)-4);

    but removes one character too many;
    code should be:

    $bwidget = substr($bwidget,0,strlen($bwidget)-3);

    either use a different plugin, or edit the existing one:
    'dashboard' 'plugins' click 'edit' below the plugin name.

  7. rmatney
    Member
    Posted 10 months ago #

    Thanks for this diagnosis.

    Following your directions, I went to Dashboard > Appearance > Plugins > Editor to edit the "simple-bookmarking/simple-bookmark-sharing.php" file (after adjusting permissions). I change the "-4" to "-3" and the issue is now resolved.

    Big thanks for your time.

  8. mtolivechurch1
    Member
    Posted 5 months ago #

    I have a somewhat similiar issue. I would like to link an image in the sideabr to a "bookmark" in a long page. How and where do I name the anchor to link the image too?

  9. alchymyth
    The Sweeper
    Posted 5 months ago #

    where is the image coming from?
    is it in a text widget?

    http://w3schools.com/html/html_links.asp

  10. mtolivechurch1
    Member
    Posted 4 months ago #

    it's in a text widget and I want to link it to the middle of a different page (prevent scrolling down looking for the info). I'm familiar with named anchors and didn't know if I can use html to name the anchor, etc. - as I am not familiar with php.

Topic Closed

This topic has been closed to new replies.

About this Topic