Archived topic
Hide Post via mobile & reduce margins
7 replies · Started by Markus on October 30, 2020
HI,
in a post attached above I have included an NGG slideshow.
1. i do not want to see this (this one post) via mobile phone. Unfortunately I don't know how to embed the display:none correctly & where?
2. how can I reduce the white borders in this one post to a minimum?
Or is there another way to integrate the slideshow at this position? About Elements? I'm new to GeneratePress and don't know my way around yet.
Thanks for your help before.
Greetings
Markus
Hi there,
1. Try this CSS to remove the first post that contains the slider:
@media(max-width: 768px) {
.blog.separate-containers article:first-of-type .inside-article {
display: none !important;
}
}
2. And this CSS to remove its padding:
.blog.separate-containers article:first-of-type .inside-article {
padding: 0;
}
Thx a lot! It works both.
You're welcome
Hi
I still have the following question:
On the 2nd blog page you can see the image I put as background in the first post behind slideshow from page 1.
How can I limit this to the 1st post on the 1st page?
Thanks & greetings
Markus
So you have this CSS:
.blog.separate-containers article:first-of-type .inside-article {
background: url(/grafix/bg16.jpg);
}
Try changing that to:
.blog.separate-containers:not(.paged) article:first-of-type .inside-article {
background: url(/grafix/bg16.jpg);
}
perfect, it works fine.
thx for the fast service :)
Regards
Markus
Glad to be of help