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.
-
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it