Community Forums › Forums › Archived Forums › General Discussion › Essence Pro Theme gradient issue
Tagged: Essence Pro, gradient, header image, hero header, hero image, linear-gradient
- This topic has 7 replies, 3 voices, and was last updated 6 years, 4 months ago by
Shantamo.
-
AuthorPosts
-
August 26, 2019 at 11:34 am #493193
hhelmbold
ParticipantReferring to the thread https://studiopress.community/topic/essence-pro-featured-image-not-appearing-as-post-header/
I have the same question. The thread was answered with "start a new thread" and use the .front-page class - but I cannot seem to find where this new thread was started or how to use the .front-page class?
Is there not a way to lighten the gradient on all pages without having to specify the image url in the Additional CSS? I would like to have a different header image for each page.
August 27, 2019 at 4:26 am #493211Brad Dalton
Participant1. I think you can use a different header image for each page simply by adding a different featured image for each page.
Try that otherwise you may need a coded solution.
2. This free tutorial will show you where the CSS is for the gradient which you can then modify.
August 27, 2019 at 4:33 am #493213hhelmbold
ParticipantThank you - Adding a different featured image is indeed the correct way, but if you use the Additional CSS option to remove or lighten the gradient then you have to specify a image URL
By specifying the url it overrides the featured image - that is why I was curious if there was a way to specify the gradient paramaters without the "url" tag.
But the tutorials will put me on a temporary solution in the mean time. Thank you
August 27, 2019 at 4:41 am #493215Brad Dalton
ParticipantI would modify the CSS in the PHP code and not use the Additional CSS feature.
August 27, 2019 at 4:45 am #493216hhelmbold
ParticipantThat's what I am planning - just scared that with theme updates it gets overwritten... And I need to hack my way to find it in the PHP LOL!
Thanks
September 17, 2019 at 4:15 pm #493602Shantamo
ParticipantI started working on changing the gradient today. In case you did not hack yet, I found the CSS in line 212 of the header-functions php file. Path looks like this: .../wp-content/themes/essence-pro/lib
Brad Dalton's tutorial would remove the gradient completely. I want to make it lighter. What is best to change: the percentage or the rgba values - or both?
{ background-image: linear-gradient(0deg, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.85) 100%)
Guess it's time for some experimenting.Whether future updates would overwrite this I do not know.
Thanks to you both.
September 18, 2019 at 2:05 am #493605Brad Dalton
ParticipantTry this generator https://cssgradient.io/
Any changes you make to your child theme will only be lost if you update your child theme when a new version is released. Updating child themes is not compulsory.
September 18, 2019 at 2:32 pm #493625Shantamo
ParticipantThanks Brad, that's a good gradient generator.
I'll make a note of the changed code, so I can employ it again when the child theme is updated.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.