I’m wondering if someone could help me with some CSS please.
I’ve been following the Making custom CSS changes on your site guide and the changes I make are taking effect on desktop, but not on mobile.
In this example, I’m trying to hide the Location
from the user profile page and from the user profile card.
I’ve applied the following in CSS > Common
:
/* Hide the User Location from their public profile page */
.user-profile-location {
display: none;
}
/* Hide the User Location from their user card */
.user-card .location-and-website .location {
display: none;
}
Testing on Safari and Chrome on macOS laptop, both are hidden:
Testing on Safari and Chrome on iPhone and both are still very visible
As mentioned above, this is the case on multiple browsers.
Similarly, I also use this CSS to hide some Custom User Fields from their public profile:
/* Hide the social media platforms from the lower part of their public profile page */
.instagram, .tik-tok, .facebook, .you-tube, .x-\(twitter\), .vimeo {
display: none;
}
And hiding from the User Card:
/* Hide the social media platforms from the lower part of their user card */
.public-user-field__you-tube, .public-user-field__vimeo, .public-user-field__instagram, .public-user-field__x-\(twitter\), .public-user-field__facebook, .public-user-field__tik-tok {
display: none;
}
But these are also still visible on mobile (on both the profile and the card)
Can anyone spot what I’m doing wrong?