Archived topic
Remove Featured Image From From PageBreaks
4 replies · Started by Abhishek Kundu on April 16, 2017
Hello Tom,
Hope you are doing well. I am using you GeneratePress Theme along with GP Premium plugin in one of my website.
Now I have enabled featured image for my posts.
If you take a look at ** the featured image is displayed perfectly. I have got page breaks in my post due to which additional urls are created like ** etc.
The problem is I don't want to display the featured image in those additional pages like
**
Looking forward for your reply.
Hi there,
This CSS should work for now but I'll ask Tom if he has a better way:
.single-paged-2 .page-header-image-single,
.single-paged-3 .page-header-image-single,
.single-paged-4 .page-header-image-single,
.single-paged-5 .page-header-image-single,
.single-paged-6 .page-header-image-single {
display: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Yep, that should do it :)
Hello Leo,
Thanks for your help. The solution which you did mention did work like magic. In some posts there will be approx 20+ sub-pages how can that be handled?
Do I need to write the CSS 20+ times?
You could try:
[class*="single-paged-"] .page-header-image-single {
display: none;
}