Solved

Sidebar Not Responsive In Studiopress Child Theme

Posted on 2014-04-04
6
282 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
ID: 39979766
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
ID: 39980398
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
ID: 39980416
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

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

Accepted Solution

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

Open in new window

0
 

Author Closing Comment

by:sharingsunshine
ID: 39982915
that's great, thanks for your help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Getting Column Height to Match Other Column 5 44
Error in script 11 46
html5 auto send email 7 22
Make custom query_posts look show the excerpt only 9 26
Find out what you should include to make the best professional email signature for your organization.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

21 Experts available now in Live!

Get 1:1 Help Now