Tagged: x
-
AuthorPosts
-
March 3, 2017 at 1:09 am #1392987
EricParticipantHey I’m having an issue with the category drop-down menu that appears on the blog posts pages under the ‘topics’ headline. The drop-down menu was customized using the CSS found below, and it looks perfect on the desktop, however on the tablet and on mobile, the designs aren’t being applied. So I was just wondering if this code could be modified so that it becomes applicable to both the mobile and the tablet. Please let me know.
Here’s my code:
.widget_categories select {
background-color: #00000c;
color: #6e98bf;
border: 1px solid #508bbf;
}Thanks!
March 3, 2017 at 1:10 am #1392989
EricParticipantThis reply has been marked as private.March 3, 2017 at 3:15 am #1393080
Paul RModeratorHi,
Can you provide us a screenshot on how it looks in your end?
This is how it looks when I checked.
https://www.screencast.com/t/LnNpn5oz
Thanks
March 3, 2017 at 8:32 am #1393300
EricParticipantThis reply has been marked as private.March 3, 2017 at 8:39 pm #1394039
RadModeratorHi there,
Unfortunately, there are styling specific to each mobile device/browser that can’t be overridden by CSS. Especially the iOS browsers. You may try this
.widget_categories select { background-color: #00000c; color: #6e98bf; border: 1px solid #508bbf; -webkit-appearance: none; }But that will also remove the dropdown since it’s part of the appearance. Please check this too https://signalvnoise.com/posts/2609-customizing-web-forms-with-css3-and-webkit
Thanks!
March 4, 2017 at 1:02 am #1394173
EricParticipantHey yeah that code doesn’t work because removing the dropdown isn’t really an option. It’s not possible to simply add two separate @media additions to my original code to make sure it applies for all three platforms?
March 4, 2017 at 4:29 am #1394281
ChristopherModeratorHi there,
The style is being apply for all devices, please see the attachment. did you manage to fix it?
Thanks.
March 4, 2017 at 10:01 am #1394444
EricParticipantHi no I didn’t and that’s strange because I just checked on the tablet and on mobile (on both regular chrome and incognito and it still shows it looking like my original screenshot).
Any idea as to why you wouldn’t be seeing what I’m seeing?
March 5, 2017 at 12:03 am #1394805
ChristopherModeratorHi there,
Please clear cache and check again.
Hope it helps.
March 5, 2017 at 10:35 am #1395165
EricParticipantHey I cleared the cache and temporarily deactivated the caching plugin but the problem still remains on tablet and on mobile.
Any idea as to why you aren’t seeing this?
March 5, 2017 at 8:39 pm #1395612
RadModeratorHi there,
I don’t see it added, what I see is just this
/* CATEGORY WIDGET COLORS */ .widget_categories select { background-color: #00000c; color: #6e98bf; border: 1px solid #508bbf; }Please implement it, or just add
-webkit-appearance: none;within that existing CSS.Thanks!
March 5, 2017 at 11:08 pm #1395686
EricParticipantHi well like I said, when I add ‘-webkit-appearance: none;’ it just removed the arrows along with the drop-down, which is why I removed it from the existing code. There’s nothing else I could add to that code that would keep the arrows, keep the drop down, but just have it appearing on tablet and on mobile?
Sorry for the confusion, I thought this would be a simple fix, but I can’t seem to get it to work.
March 6, 2017 at 1:52 am #1395860
RadModeratorHi there,
Yes, it’s not simple since each device and browser has its own rendering standard. Removing the appearance is the only way to remove default look of iOS controls.
While other create their own controls, but it’s custom coded and complex. You may wish to contact a developer that could create one for your site.
Thanks.
March 6, 2017 at 1:09 pm #1396662
EricParticipantHey as it turns out my cloudflare cache was preventing some of my customizations from being applied. So now that the caching issue is resolved, is there any other css additions that you could think of that might solve this issue? The only one that you suggested (‘-webkit-appearance: none;’) didn’t work, but is there any other options I could try? Let me know.
Thanks!
March 7, 2017 at 12:04 pm #1398055
Nabeel AModeratorHi again,
You can try the following code:
select{ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIwLjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0LjkgMTAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQuOSAxMDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM0NDQ0NDQ7fQo8L3N0eWxlPgo8dGl0bGU+YXJyb3dzPC90aXRsZT4KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIxLjQsNC43IDIuNSwzLjIgMy41LDQuNyAiLz4KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIzLjUsNS4zIDIuNSw2LjggMS40LDUuMyAiLz4KPC9zdmc+Cg==) no-repeat 95% 50%; -moz-appearance: none; -webkit-appearance: none; appearance: none; }Don’t forget to clear your cache after adding the code. Let us know how this goes!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1392987 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
