?
Solved

Sidebar Not Responsive In Studiopress Child Theme

Posted on 2014-04-04
6
Medium Priority
?
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 53

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 53

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

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

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
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…
Suggested Courses

801 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