alternative page title on mobile
-
i would like to display an alternative page title on the mobile page. How could I do that?
-
Dear @jenswindolf
you need to work around the usual solution.-
You could create a div with the new page title in the CUSTOM HTML and then position it with CUSTOM CSS and hide the old page title.
-
You could use jQuery to exchange the text in the page title.
Hope that helps :-)
Best!
Marius
-
-
Dear Marius,
I tried this
.mobile-title {
visibility: none;
position: relative;
}.mobile-title:after {
visibility: visible;
position: absolute;
top: 0;
left: 0;
content: "This text replaces the original.";
}But then I have both texts. Unfortunately I'm not a developper.
-
Well, this works visually:
.mobile-title.text {
display: block;
font-size:0px;
}.mobile-title.text:after {
display: block;
font-size:18px;
white-space: pre;
content: "J \A W \A G";
}But I think it's totally chaotic.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login