- This topic has 18 replies, 2 voices, and was last updated 6 years, 4 months ago by
David.
-
AuthorPosts
-
December 3, 2019 at 2:09 am #1091197
alexis
hi !
there’s a conflict on the page of one of my articles. It takes in background the image of the article while I set it to be another image (done via element).
I have a solution that consists in putting the background in”!important in css”.
But is there another solution?December 3, 2019 at 3:49 am #1091340David
StaffCustomer SupportHi there,
All it means is that the CSS needs to be more specific than the CSS it is overriding. If you cannot make it any more specific than using !important is fine.
December 3, 2019 at 4:56 am #1091441alexis
Okay, there is no solution in php for that on:
articles with this ‘id’ do not display the image highlighted (article)so that the hero page I created is takenDecember 3, 2019 at 4:58 am #1091448David
StaffCustomer SupportI am not sure i fully understand – could you remove the coming soon and link me to the post where i can see the problem?
December 3, 2019 at 5:29 am #1091490alexis
this is the css code I put in:
.postid-951 .page-hero { background-image: url(https://k-lya.fr/wp-content/uploads/2019/12/design-afb-agencements.jpg)!important;}but I created a page hero in element.
December 3, 2019 at 6:11 am #1091536David
StaffCustomer SupportWhy do you need the CSS to change the background image of that page?
In the Header Element you can choose the Featured Image for the background and then each page will use its own featured image? Or you could create a separate element for each?December 3, 2019 at 6:31 am #1091581alexis
Sorry,
it doesn’t work in element. The image of the article takes over. In fact the article image is the image of a mockup (website layout). And in the article I want to header the image I want (made with element but does not work)
December 3, 2019 at 7:08 am #1091778David
StaffCustomer SupportHow many Header Elements do you have?
If you have more then one you have to make sure the Display Rules are not conflicting.For example:
If the First header element you created is set to ALL Pages. And your Second Header Element is set to a specific page then the First Header will always display. To get around this you must Exclude the pages from the first header element.December 3, 2019 at 8:18 am #1091893alexis
Sorry we had to misunderstand each other, I put screenshots. In element I put my photos and rental item well.
But it is in my article page that featured image takes over and there is a conflict
https://drive.google.com/file/d/19-936-96GE_747M8G3yhQ5tluNmupqiW/view?usp=sharing
https://drive.google.com/file/d/156GnDcSqhbw_si1QR4XTDlyhg2i8o3L3/view?usp=sharing
December 3, 2019 at 9:39 am #1092021David
StaffCustomer SupportDo you have any other Header Elements that include the Display Rules for Articles ?
December 4, 2019 at 12:24 am #1092718alexis
No, the rule is that only my article afb agencements. If I delete the image highlighted in the article then the photo defined in element is displayed
December 4, 2019 at 9:23 am #1093384alexis
do you have a solution to resolve this conflict? Because otherwise I must to make a line of css for each article
December 4, 2019 at 9:50 am #1093430David
StaffCustomer SupportCab you send me a screenshot of the Page Hero tab ?
December 5, 2019 at 1:05 am #1094164December 5, 2019 at 3:00 am #1094264David
StaffCustomer SupportSorry can you edit the
afb_headerelement and provide a screenshot of the Page Hero – i need to see the settings being used. -
AuthorPosts
- You must be logged in to reply to this topic.