Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Sidebar Not Responsive In Studiopress Child Theme

Posted on 2014-04-04
6
Medium Priority
?
291 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 54

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 54

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
Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

 

Author Comment

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

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

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

610 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