smaller screen – front page looks different
-
Hi,
I had help previously with the custom CSS of my front page to create a specific look…the only issue is, suddenly, I have messed up what happens on smaller screens. On my phone, for example, the grid becomes very spaced out and the images seem to float in space by themselves. Any idea what I fooled with to cause this issue?
The blog I need help with is: (visible only to logged in users)
-
Did you try to use image width = 100% instead of fixed size?
Change width and height of image to 100% and it will automatically.
You can use 100% to grid,etc.
-
hi again @annascherman
When you are in your site’s WP Admin>Appearance>Customizer, under the CSS tab do you see an option for CSS Revisions? https://en.support.wordpress.com/custom-design/editing-css/
WordPress.com saves your last 25 CSS revisions. You should be able to roll back from there.
Let us know how that goes and if you need any further help.
-
Hi justjennifer,
This is actually something that must have been changed before my last 25 CSS revisions and I just didn’t catch it…I’ve made a lot of changes in the last few weeks!
dewlancehosting, where in my code are you suggesting I set the image width to 100%? I had help getting to the current structure and there are a lot of different revisions…see below. All of this is currently creating the grid as I wish it to be.
#page { margin-left: auto; margin-right: auto; max-width: 960px; position: relative; } .site-header { max-width: 28%; position: relative; width: 220px; padding-right: 0; margin-left: -105px; } .site-content { float: right; margin-left: 0; margin-right: -70px; max-width: 80%; position: absolute; right: 0; top: 0; width: 100%; } .hentry.page { max-width: 90%; } -
I see the following code in one of the custom CSS files, but apparently it doesn’t show up in your CSS Customizer?
Try pasting this at the end:
.my-ul { margin:0px; } .my-ul img { margin-bottom:8px; padding-right:8px; width:100% !important; } -
-
Have you selected the “Enable mobile theme” option under WP Admin > Appearance > Mobile? (Diret link.)
If so, we’re gonna have to target that separate mobile theme via its own CSS selector:
.mobile-theme .my-ul { margin: 2px; } .mobile-theme .my-ul img { margin-bottom: 8px; padding-right: 8px; }How does it look now?
-
Nope, unfortunately it looks the same…
Also, I noticed none of the other CSS I have set up is working on my phone? For example, I have something set up to override the black standard background of the slide show on my other pages, but its not showing on my phone?
-
Do you have the “Enable mobile theme” set under WP-Admin > Appearance > Mobile?
If yes, that CSS will have to be preceded by .mobile-theme class, if not, is it wrapped under @media query, with a max width of around 600-700px?
I’m afraid there could be a syntax error in the code as well, I believe a staff member will have to take a look so I’m tagging this thread for their attention.
-
I do have “Enable mobile theme” set…
when you say, “that CSS,” do you mean all of the CSS that I have already? There is quite a bit…
Thanks, I think a staff memner would be great! How do you tag a thread for their attention?
-
Not all of the CSS, only mobile-specific. Blask is a responsive theme, so you don’t really need to enable that option. It’s for themes that don’t have a responsive design, i.e., the ones which don’t automatically resize according to device screen size.
For tagging, look at the top right section of this thread; adding modlook there will bring it to their attention as they go through the queues. I’ve already added it.
See if disabling “mobile theme” solves the grid spacing issue, it should.
-
- The topic ‘smaller screen – front page looks different’ is closed to new replies.