- This topic has 21 replies, 2 voices, and was last updated 4 years, 1 month ago by
David.
-
AuthorPosts
-
February 22, 2019 at 6:13 am #817498
Gerd
Hello,
Sorry, I can not speak English well.
I am currently building a website.
I uploaded a picture under the menu point Backround Images-Content. But I do not want the image on a certain page. Is there a css code?Many thanks for your help
February 22, 2019 at 6:25 am #817506David
StaffCustomer SupportHi there,
each page or post has a unique ID which can be used.
If you edit a Page you can get the ID from the URL in your browser, if its a Page or a Post it will look like this:post=899
So for his page the CSS would be:
.page-id-899 { background-image: none; }
If it was a Post then the CSS would like this:
.postid-899 { background-image: none; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 22, 2019 at 6:47 am #817536Gerd
Hello David,
thanks for your answer. your code only works with a background image. But I mean the image of the menu item content.
On this page the picture should be: https: //gasvergleich-check.de
No image should be on this page: https: //gasvergleich-check.de/gas-tarifrechner/greeting gerd
February 22, 2019 at 7:23 am #817699David
StaffCustomer SupportAah sorry π
Try this:
.page-id-126 .inside-article { background-image: none; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 22, 2019 at 8:03 am #817731Gerd
Hallo David,
your support is great.
Many ThanksFebruary 22, 2019 at 8:40 am #817772David
StaffCustomer SupportGlad to be of help π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 27, 2019 at 2:15 am #823004Gerd
Hallo David,
removing the content image from the pages went well. I would like to have a blog on my site now. Which code do I have to take there?
Here is the page: https: //gasvergleich-check.de/gasvergleich-blog/greeting gerd
February 27, 2019 at 5:14 am #823163David
StaffCustomer SupportHi there,
you would target this class:
.blog .inside-article
As a note you can group common rules together eg.:
.page-id-401 .inside-article, .page-id-126 .inside-article, .blog .inside-article { background-image: none; }
By comma separating each of the selectors they can all share the same properties π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 27, 2019 at 2:32 pm #823823Gerd
Hi David,
Thank you very much
It worked.
How is the code in comments?February 28, 2019 at 2:32 am #824198David
StaffCustomer SupportNot sure what you mean? Do you mean:
/* I am a CSS Comment */
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 28, 2019 at 3:50 am #824261Gerd
Hi David
the background image should not appear in the comments.
here the page: https://gasvergleich-check.de/gasvergleich/#commentsFebruary 28, 2019 at 3:52 am #824264David
StaffCustomer SupportAdd this:
.separate-containers .comments-area
into your list of selectors πDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 28, 2019 at 2:00 pm #824989Gerd
That’s the code?:.separate-containers .comments-area .inside-article{
background-image: none;
}
That does not workFebruary 28, 2019 at 2:36 pm #825018David
StaffCustomer Supportinside-article is not required e.g:
.separate-containers .comments-area { background-image: none; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 1, 2019 at 1:27 am #825317 -
AuthorPosts
- You must be logged in to reply to this topic.