Site title on mobile
-
Hi,
I’ve been trying to stop the site-title from being suppressed when the site is viewed on a mobile device.
I’ve used the custom css below (from another support post):
@media (max-width: 767px) {
#masthead {
min-height: 160px;
}
.site-logo-link + .site-title,
.site-description {
display: block;
}
.site-branding {
top: 30%;
}
}This does indeed stop it being suppressed.
BUT … the header of pages other than the home page is laid out differently, using :
.site-branding {
left: 50%;
position: absolute;
top: 40%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}This causes the div containing site-title (site-branding) to be 50% the width on the homepage … so the site-title wraps within it. Which looks awful.
Is there a way to prevent this ?
I tried applying the css from home page (below) to all pages … but this ended up giving different appearance on different pages.
#masthead .site-branding {
left: auto;
position: relative;
top: auto;
-webkit-transform: none;
-ms-transform: none;
transform: none;
}Any help appreciated as I’ve been trying this for day! Thanks
The page I need help with: [log in to see the link]
- The topic ‘Site title on mobile’ is closed to new replies.