- This topic has 13 replies, 3 voices, and was last updated 3 years, 3 months ago by
Ying.
-
AuthorPosts
-
March 15, 2023 at 9:32 am #2568814
scometamus
Dear GP-support,
on the attached page (and only on this and other selected pages) I’d like to add a background image.
Thus the customiser option of GP Premium doesn’t work for me, as these background images apply to all pages.
I was able to gather some code in this forum that is supposed to solve my problem:
/* Background Image on link pages */ .body.page-id-490 { background-image: url('https://test-site.com/wp-content/uploads/2023/03/background-image.jpg'); }The page ID from that page (ID 490) I got from the inspector. But it doesn’t work so I suppose I did something wrong here.
March 15, 2023 at 9:48 am #2568845Ying
StaffCustomer SupportHi there,
There’s an extra
.beforebody.Try this:
/* Background Image on link pages */ body.page-id-490 { background-image: url('https://test-site.com/wp-content/uploads/2023/03/background-image.jpg'); }March 15, 2023 at 10:20 am #2568888scometamus
This unfortunately did not solve the issue. There still doesn’t appear any background image.
March 15, 2023 at 10:30 am #2568899Leo
StaffCustomer SupportMight be the wrong quoation mark.
Can you try this instead?
/* Background Image on link pages */ body.page-id-490 { background-image: url("https://test-site.com/wp-content/uploads/2023/03/background-image.jpg"); }Please disable clear and disable any caching or optimization plugins if this still doesn’t work – we would need to inspect the code.
March 15, 2023 at 10:40 am #2568909scometamus
Changing ‘ to ” did not change anything unfortunately.
I emptied the cache and then disabled Autoptimize. Let me know how can I further assist finding the issue.
March 15, 2023 at 11:16 am #2568947Leo
StaffCustomer SupportWhere are you adding the CSS? It’s simply not showing up in the page source at all.
March 15, 2023 at 11:22 am #2568957scometamus
Via the child theme. I see changes I make there though! This is odd!
March 15, 2023 at 11:55 am #2568991Ying
StaffCustomer SupportIn your other topic, I provided the below CSS, but there’s a
{missing after@media (min-width: 1025px), please try adding the{to check./* Artist Rooster centered */ @media (min-width: 1025px) .home .entry-content { display: flex; align-items: center; min-height: 100vh; flex-wrap: wrap; justify-content: center; } }March 15, 2023 at 12:15 pm #2569026scometamus
Didn’t work unfortunately. Updated the complete css code privately.
March 15, 2023 at 2:33 pm #2569104Ying
StaffCustomer SupportNot able to get the file to work.
Can you just link me to your site?
March 15, 2023 at 2:43 pm #2569111scometamus
Sure, attached.
March 15, 2023 at 3:30 pm #2569158Ying
StaffCustomer SupportYour content background color is set to white in the customizer, the color sits on top of the body background, so you are not able to see the body background image.
March 15, 2023 at 3:52 pm #2569175scometamus
I see, that’s getting too complicated then. I just moved to a simple background color (instead of an background image) for now. Thanks!
March 15, 2023 at 8:02 pm #2569334Ying
StaffCustomer SupportMaybe try adding this CSS so set the homepage’s content area background color to transparent.
.home .site.container { background-color: transparent; } -
AuthorPosts
- You must be logged in to reply to this topic.