- This topic has 14 replies, 6 voices, and was last updated 8 years, 1 month ago by
Leo.
-
AuthorPosts
-
November 17, 2016 at 4:12 am #245108
Daniel
Would be great if we could have colour overlays for pages header images like you can with videos.
Or can this already be done somehow?November 17, 2016 at 8:57 am #245200Tom
Lead DeveloperLead DeveloperCurrently it’s not possible without some custom programming, but it’s something I’m looking into ๐
November 17, 2016 at 9:04 am #245210Daniel
It would really be a great addition if you could add that feature ๐
November 17, 2016 at 9:26 am #245225Tom
Lead DeveloperLead DeveloperSomething like this should actually work in the page header content textarea: https://generatepress.com/forums/topic/semi-transparent-image-overlay-for-sections-and-page-header/#post-158683
November 17, 2016 at 7:53 pm #245412Lyle
Daniel,
Actually, it’s not that difficult ๐ Using Tom’s handy dandy Simple CSS plugin, you can add this into the CSS meta box that will be there on each page:
.generate-content-header { background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url(http://stuffingeneral.com/wp-content/uploads/2016/11/lyle_wzz1.jpg); }You will of course need to adjust for the color(s) and opacity (this setting provides a light overlay) as well as the actual path to your own image. Works a treat ๐
Cheers!
LyleNovember 17, 2016 at 8:10 pm #245421mikei
That’s what I did last night with the page header)
November 17, 2016 at 10:26 pm #245436Tom
Lead DeveloperLead DeveloperCool method, Lyle!
November 18, 2016 at 5:20 am #245533Daniel
Like it Lyle! Thanks
January 15, 2017 at 4:16 am #264229Daniel
This method did not work well for me. Also the opacity effects the text content in the page header too.
Would be good to see this feature added so it works like the video option.January 15, 2017 at 9:41 am #264293Tom
Lead DeveloperLead DeveloperWhich method did you try? Opacity shouldn’t be used in this case.
January 15, 2017 at 1:53 pm #264381Daniel
Sorry, I meant using Lyle’s method. I will test again, maybe I am seeing things ๐
January 15, 2017 at 3:47 pm #264396Lyle
Daniel,
I see what you mean by the overlay affecting the content as well. So, then try this ๐
Change the selector in my first example,
.generate-content-headerto this.inside-page-header-containerJust tried it and everything placed in the Page Header > Content area (text, shortcodes from Elementor, etc.) does not have the overlay applied. Same goes for the site header elements (Title, tagline, nav, etc.)
Cheers!
LyleJanuary 15, 2017 at 4:04 pm #264397Lyle
Just noticed that I also had to add
background-repeat: no-repeat;๐March 2, 2018 at 5:03 am #509588Ivan Cazorla
Hi there! Is it yet possible to add color overlay on the image?
thanks,
ivanMarch 2, 2018 at 8:15 am #509791Leo
StaffCustomer SupportHi there,
Like an image not in page header? If so can you start a new topic?
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.