• Resolved moshie

    (@moshie)


    This is the site: http://www.laurawellsmcknight.com/. I’m using the Fork in the Road template.

    You can see the Twitter box in the second sidebar on the right. It’s a plugin called Twitter Only Widget. I need it to be centered in the sidebar and I can’t figure out how to do that.

    I have put <center> </center> tags in the twitter-only-widget/twitter-only-widget.php files, but that didn’t work. (<center> tags work in the sidebar text widgets for centering graphics, so I’d hoped that would work here).

    Ideas?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Either make the twitter box 209 px or add margin-left: 4px;

    .twtr-doc{width:209px!important;}
    OR
    .twtr-doc{margin-left:4px!important;}

    to your style.css file

    Thread Starter moshie

    (@moshie)

    I don’t know where you found that info, but I can’t find it anywhere. There’s no “twtr-doc” coding in the style.css file at all. This is a widget I’m trying to center. Thanks though.

    Try adding the CSS above to style.css.

    Thread Starter moshie

    (@moshie)

    Thank you esmi, I did and there was no change.

    By the way, esmi, the “duplicate” post that you deleted specified that I’m using a different twitter widget now, the Simple Twitter plugin instead of the Twitter only plugin. I also posted it in a the Theme bracket because I would like to know how to center ALL widgets in this theme, not just the Simple Twitter one.

    Other ideas about centering this widget?

    By the way, esmi, the “duplicate” post that you deleted specified that I’m using a different twitter widget now, the Simple Twitter plugin instead of the Twitter only plugin.

    Then you should have added that info to this topic. Having two topics on the same general subject going at the same time causes unnecessary replication of work for forum volunteers and is not allowed.

    And your current twitter feed is centred in your sidebar.

    Thread Starter moshie

    (@moshie)

    Thank you, esmi, for being so helpful to a newbie.

    Also, the current twitter widget does not look centered in the sidebar. It is still looks too far to the left. If I add to the margin-left, nothing changes. That’s why I don’t understand how it’s working…

    I guess I am judging it’s centering based on the links/ hr rules above. Compared to those, the widget is still too far to the left. I checked the margins for those headers, and they are all centered. So how can they be centered, and the twitter widget be centered, but look off?

    Is there a way to upload a screenshot here? I could show you how they look non-aligned.

    Try adding:

    .twtr-widget {padding-left:5px;}

    Thread Starter moshie

    (@moshie)

    Thank you, that worked perfectly.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘centering twitter widget in sidebar’ is closed to new replies.