Tagged: mobile css
-
AuthorPosts
-
July 13, 2016 at 4:14 pm #660487
Apologies in advance if I am missing something basic, here, but I can’t get any mods in my custom.css (in child theme/css/ folder) to show up. As a test, I did this:
Mobile Styles
================================================== */
/* Note: Add new css to the media query below that you want to only effect the Mobile and Tablet Portrait view */
@media only screen and (max-width: 767px) {
/* Add your iPhone Styles here */
h1 {
display: none !important;
}
}But the h1s still show up on my iPhone: http://princetongutters.com/
What am I doing incorrectly? I have the site behind a Sucuri firewall, but I have flushed that cache multiple times after modifying the h1 tag and I don’t think that is the problem. I am using the latest Enfold theme version.
Thank you,
KeithJuly 14, 2016 at 8:05 am #660711Hey Keith,
Thanks for getting in touch with us!
Are you trying to hide all h1 tags on mobile devices? Could you please provide login details to your site, so that we can have a closer look. You can place the information in the Private Content section of your reply.
Best regards,
JordanJuly 14, 2016 at 4:09 pm #660917Hi Jordan,
I am just trying to get the mobile CSS to work at all :-) Hiding the H1 is just a test, so for your and my purposes, yes I am trying to hide all H1 tags.
Admittedly, it gets a little wackier for testing because I need to refresh the Sucuri WebProxy cache to see the changes take effect, I believe.I have Sucuri looking into this as well, just in case it’s something on their end.
I have provided login info in the Private Content section. Please note that the admin area access link is changed for security purposes.
July 15, 2016 at 12:38 pm #661215Hi,
I’m not sure why your CSS is not working in that file, it might be due to caching. Could you try using it in Quick CSS instead to see if that works better maybe?
Best regards,
RikardJuly 15, 2016 at 3:48 pm #661387That’s weird…Quick CSS works!
I guess I can add all my mobile on custom.css just so I can see it more easily all together and then cut/paste into Quick CSS.
Not ideal, and I don’t know why things would be this way, but at least you’ve presented me with a workaround.
If the custom.css is in the right place in my child theme and properly coded, then it just must be that the WP gods are against me on this one.
Thank you for your help, Rikard!
July 17, 2016 at 11:07 am #661721 -
AuthorPosts
- You must be logged in to reply to this topic.