Increase widget width
-
Hi All,
I’m looking to increase the width of the widget area, the reason for this is my table press widget is currently spilling over the edge of the widget area, so rather than reducing the table width, I’d like to increase the widget area.
Any suggestions?
Thanks,
-
Can you show us a page with the issue?
it’s on all pages biggestfreebets.com
I don’t know how robust this is of a solution, because it might only work on my particular screen size.
If you’re not using a Child Theme, and if the theme doesn’t have a designated section of the dashboard for CSS modifications then do the following:
- Install this Custom CSS Manager plugin http://ww.wp.xz.cn/plugins/custom-css-manager-plugin
- use its “CSS Code” section of the dashboard to hold your CSS modifications:
-
(put this code in)
@media only screen and (min-width: 60em) { .container { max-width: 100%; width: 100%; } } - Save
Alternatively use your Child Theme style.css file to hold your CSS modifications
thanks Andrew, before I make any changes to the css
this is what’s currently there
}
@media only screen and (min-width: 50em) {
/* ensure #footernav is visible on desktop version */
#footernav-menu {
display: block !important;
}I assume any changes will only have an impact on the desktop version and not mobile, i want to basically make the table fit inside the widget header, is there not a simple way of increasing the widget width?
I think the widget is constrained by the width of the entire site, so you could make the entire site wider. Another option would be to make the actual content column smaller while leaving the width of the entire site
great, how do you suggest doing either option?
So the above code that I mentioned in my second post makes the whole site wider, but does so at a minimum of like large tablet? I’m not sure for “60em” converts to, but I have a feeling that it’s around a desktop size.
I’d encourage you to use a Custom CSS plugin to hold your CSS modifications, so that when things go wrong you can just deactivate the plugin. Or you can find the code that you’ve modified a lot easier, rather than having to go through a thousand lines of CSS.
An improvement of the code might be this:
@media only screen and (min-width: 60em) { .container { max-width: 1500px; width: 100%; } }Do you want to explore the option to increase the main section of content still?
yes that option of increasing the main section of content is also viable, in your option what would work best on both desktop, tablet and mobile?
I will look to install the custom CSS plugin that’s a good idea
i did that and worked perfectly. thanks very much Andrew.
The topic ‘Increase widget width’ is closed to new replies.