Wordpress.com - after saving custom CSS all widths are removed - css

I'm working with wordpress.com along with the custom design upgrade to be able to change the CSS. Everything was working fine yesterday, and suddenly today I have an issue with the stylesheet: when I hit the 'save' button all the widths are removed from the CSS, which causes some elements to overlap or be misplaced. It's such a strange behaviour that I don't think I could have accidentally caused it. Only the widths disappear, every other element/rule is there.
I posted this question at the WP forums but no luck yet. Hopefully someone here has an idea about what could be wrong.
Thank you in advance :)
SOLVED:
Apparently is a WP issue. I 'fixed' it with a workaround that someone suggested me by replacing 'width' with 'min-width' and 'max-width'.

This was confirmed as a bug, the staff at WP already fixed it and everything is back to normal. Here's a link to the thread in case you were affected.

Related

Elementor ruins page layout

I use Astra (latest version) and Elementor 3.64, tried to switch off every plugin, clear cache, restore CSS and change CSS setting to external file, nothing helps.
I have some products in my catalog, and those product posts that I have created previously seem to have no problem with CSS.
But when I create a new product, the page has no margins or paddings whatsoever. The most interesting thing is that when I start editing previous product posts, the margins and paddings also disappear there. That's why I try not to change other "healthy" posts with Elementor, because it ruins them.
I tried looking at the CSS code through F12, it shows that CSS codes for ast-separate-container and ast-woocommerce-container simply disappear and I have no clue why that happens. Other pages that I haven't opened with Elementor have these code lines with all margins and paddings. Somebody help?
Normal page: https://atomycatalog.kz/product/atomi-centella-nabor/
Ruined page:
https://atomycatalog.kz/product/atomi-dorozhnyj-nabor-6-dlya-ochishcheniya/
Have you tried updating Elementor to version 3.7.0 before?
I've got news from some friends that there is a bug in version 3.7.0 which makes some layouts messy, they say downgrading still doesn't change anything.
The only way they fix the messy layouts problem is with restore the database if you have any backup for the version on date where you feel everything is still fine.
Elementor developer team will work hard to fix this bugs in the next update. I am sure of it
If this doesn't help you, come back and ask again:)

Why Is My Wordpress Theme Losing CSS On Mobile?

I'm working on a Wordpress theme over at http://mbgb.co.uk/blog
Up in-till an hour ago all was OK, now however whenever accessing the site with mobile dimensions, the previous CSS has disappeared. I've tried going back to previous CSS but that's not working and to my knowledge I've not touched any other part of the build.
Any advice?
Thanks in advance.
I have checked the url you mentioned.
Found some weird tags.
Please open your website and view your page source(Ctrl + U).
Preferably in Mozilla Firfox. As there the errors will be highlighted.
Please see the attached screenshots.
Go through the page source and resolve the things that are making these occur.
Please check
Please check
Did you checked if there are css rules that make your CSS appear only for desktop screens? This could be only explainable reason.
I'd just left a tag out - one day I'll learn not to panic. Sorry guys.

Horizontal scroll - syntaxhighlighter

I was googling to find a solution for this forever, I was so close but still can't find the problem...
The closest solution I found was at this site But:
I want exactly the opposite of what this guy posted: Automatic line break in js SyntaxHighlighter
He wants instead of horizontal bar to break the code down, but what do I want is instead of breaking the code down, to display a horizontal bar.
I've used SH on multiple projects and never actually had this issue till now.
I've installed it in wordpress as a plugin in a custom theme, I modified the theme css file(s) and the syntax highlighter's file(s) (.css), but still nothing's going on.
Here's a screenshot
If you have any suggestion what the problem might be, please tell me - any help is appreciated.
I think what you are looking for is a combination of overflow and white-space css properties.
pre {overflow:scroll;}
.pre-wrap {white-space:pre-wrap;}
Please see the footle here

Roots Theme 6.4 Disappearing Homepage Content with decreasing screen size

Good Day,
I have noticed today that for some reason using WordPress 3.6.1 and Roots 6.4.0 that the homepage had blank content between the footer and the logo. However, it only happens on the homepage, works fine on any other page, and it has only happened recently.
You may check out the website: http://jsteinhi.com.
I ask that someone please check it out, and tell me if this a media query problem, CSS, PHP, or WordPress problem. I want to know, so I can avoid this happening again if it was a mistake I made that or changes to a post that caused this.
I thank you for your time and efforts.
Interestingly the problem lied with a "display: none" in my main stylesheet. Don't know why it was there under a media query, but it's now fixed.

Sidebar pushed below content in individual post (Wordpress)

I'm designing a blog in Wordpress using the Thesis Framework and there is an issue that I just can't seem to find a fix to:
Basically everything is fine on the main page, but when I go into any individual post, the side bar is getting pushed off and showing up right down the button of the page (below the comments).
It's pretty obvious that there is some kind of sizing/width issue and I've played around with a lot of the widths in firebug but just can't seem to find where it's going wrong. I can't find a difference between the main page and post pages either.
Any help would be greatly appreciated! A specific solution would be ideal because I've already spent a lot of time tinkering with it to try and address the issue.
Thanks in advance for any help!
I had this problem as well with the thesis framework. I found two reasons where it produced a similar mistake on my blog:
The first reason is that the sidebar + content area is bigger than you container. That would make the sidebar go below the the content. Make sure also that the content of the sidebar is also smaller than the sidebar. I had a Facebook box in the sidebar that was bigger, thus pushed the whole sidebar below the content.
An other reason was a plugin that I had installed. If you have any plugins installed try and see if one of those is interfering with the sidebar layout.
If that doesn't work you can also post a snippet of the code so that I can look at it.
I often have this problem when editing a page in html (text) mode and forget a closing tag, most notably a . If using tables, a missing , or similar will cause this.
So, in brief, make sure all your opening tags have a corresponding close tag.
Make sure the html is syntax-error free. I had the same problem and the culprit was a wrong closing tag (<b/>)

Resources