Solved

Sidebar Not Responsive In Studiopress Child Theme

Posted on 2014-04-04
6
281 Views
Last Modified: 2014-04-07
I have a studiopress theme that is responsive but when I display it on smaller screen sizes the right sidebar widens.  It looks fine in a normal desktop size browser window but on tablets and phones it looks bad.

I need to have it look the same as the normal size browser.  That is centered in the sidebar and the side bar not widened.

Pleaee tell me how to fix this problem.

My site is at http://www.thefrugallife.com/wordpress

Attached is a screenshot in a responsive viewer.


Thanks,

Randal
test-responsive-tfl.tiff
0
Comment
Question by:sharingsunshine
  • 3
  • 3
6 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
Comment Utility
It is doing what it is supposed to be doing for a responsive site.  When the screen gets narrow, the divs that where columns will stack to rows.

You will see media queries like this in your css.  You can see under the 2 different scenarios the there are a number of items that are either 300px wide or full 100%.

If you keep the side bar on a small screen, it would have to be so tiny (including the font) it would not be seen.  Although the choice of media query widths seem different than what I am used to, this is common practice for responsive.  
media="all"
@media only screen and (max-width: 1139px)
.footer-widgets-1, .footer-widgets-2, .footer-widgets-3, .sidebar-primary, .title-area {
width: 300px;
}

media="all"
@media only screen and (max-width: 1023px)
.content, .content-sidebar-sidebar .content, .content-sidebar-sidebar .content-sidebar-wrap, .footer-widgets-1, .footer-widgets-2, .footer-widgets-3, .sidebar-content-sidebar .content, .sidebar-content-sidebar .content-sidebar-wrap, .sidebar-primary, .sidebar-secondary, .sidebar-sidebar-content .content, .sidebar-sidebar-content .content-sidebar-wrap, .site-header .widget-area, .title-area {
width: 100%;
}

Open in new window

0
 

Author Comment

by:sharingsunshine
Comment Utility
I understand they stack to rows but when I look at other sites with a 3 column layout the images in the sidebars and the sidebars themselves are all centered so they look good.

Additionally, the images aren't resizing to a smaller screen and they aren't staying centered either.

So what should I change the media query css to?

Thanks,
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
Comment Utility
Ok, I understand now.

Add this css to your child theme below anything else.  The images are in a div with class textwidget.
.textwidget img{
   text-align:center;
}

Open in new window

0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:sharingsunshine
Comment Utility
I put the code in and nothing has changed.
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
Comment Utility
Try
.textwidget{
   text-align:center;
}

Open in new window

0
 

Author Closing Comment

by:sharingsunshine
Comment Utility
that's great, thanks for your help.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now