Tagged: yigit
-
AuthorPosts
-
September 22, 2015 at 1:04 pm #506992
Hi,
We are looking to achieve something like this: http://cimgroup.com/strategy
Basically, we need a large image as the background which we added already under Enfold settings, but then, with the image, the text gets lost and doesn’t look great. We need either a black background for the content areas / text areas please where we can control the opacity if possible. If not, a solid colour is also ok.
Please advise.
Many thanks.
September 22, 2015 at 2:51 pm #507082Hey sitesme!
I suggest to remove the background image you are using right now and use this code instead (inside Quick CSS field):
#wrapSite { background-color: rgba(0,0,0,0.6) }
The last value (0.6) is the opacity. Adjust as needed.
Regards,
AndySeptember 22, 2015 at 3:03 pm #507093Thank you Andy for your great help but I still need the large image fixed as the main background of the website. Then I need the “shadow” area for the contents in white with a small transparency. The content area will vary from page to page.
Can you please confirm if the code provided is exactly what I am looking for?
Many thanks.
September 22, 2015 at 3:32 pm #507129Hi!
Can you please post the link to your website and point out the changes you would like to make so we can make sure that we are on the same page?
Best regards,
YigitSeptember 22, 2015 at 4:21 pm #507174Hi Yigit,
Please check the link below in private. All I need is to have a white background behind the text.
Thank you
September 22, 2015 at 4:24 pm #507176Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.page-id-36 .post-entry { background-color: white; padding: 20px; }
Regards,
YigitSeptember 22, 2015 at 4:29 pm #507180Thank you Yigit :)
It worked, however, how can I add some transparency to the white background so we can see a bit of the image background?
In addition, I will need the white background in all pages. Is there a way to add this “css rule” into all pages? Or do I need to add them individually on each page-id?
Many thanks
September 22, 2015 at 4:31 pm #507185Hey!
You can give your color section elements a unique ID – http://kriesi.at/documentation/enfold/wp-content/uploads/sites/2/2013/12/color-section-ID.png and then change the code to following one
#your-unique-id .post-entry { background-color: rgba(255,255,255,0.5); padding: 20px; }
255,255,255 is RGB value of the color and 0.5 is opacity level. Please adjust it as needed
Best regards,
YigitSeptember 22, 2015 at 6:22 pm #507283Thank you Yigit, however I wasn’t able to add the latest code.
I added “homeID” as the unique ID under the section ID and then added the code in the Quick CSS area:
#homeID .post-entry { background-color: rgba(255,255,255,0.5); padding: 20px; }
It didn’t work, and I suppose I am doing something wrong.
In addition to the above, can you please confirm if:
1) Can I use HEX colours such as FFFFFF instead of 255,255,255? It will save me a lot of time in some sections where we have specific colours
2) Instead of adding one code line for each post entry ID, is there a way I can just add the IDs on the same css code? For example:
#id1 #id2 #id3 .post-entry { ...
Thank you once again.
September 23, 2015 at 2:10 pm #507771Hi!
0.) We can check if you implemented everything correctly and for this we need admin access. You can post login details here as private reply.
1.) Yes, you can use background-color: FFFFFF; as well, but only if you don’t need an opacity value.
2.) Try something like this:
#id1 .post-entry, #id2 .post-entry, #id3 .post-entry { … }
Best regards,
AndySeptember 23, 2015 at 6:58 pm #508051Hi Andy,
Thank you for your help.
I decided to add the code as suggested by Yigit and it works fine, by using the “.page-id-36 .post-entry” as I can not seem to have “#your-unique-id .post-entry” working properly.
I am also clarified about the RGB vs HEX colour codes and the opacity value.
I am going to try a few other changes and I will get back to you if I need any further help on this issue.
Many thanks.
September 25, 2015 at 5:18 am #508758Hi,
Great, we’ll leave the thread open if you should have any more questions or problems.
Best regards,
RikardOctober 21, 2015 at 3:26 pm #522349Hi,
I’m glad you kept this topic open.
I played around with the padding to decrease the background size but it just decreases the top / bottom of the box. How to decrease the side gaps as well?
Thank you
October 22, 2015 at 6:41 pm #523214Any news on this one please?
October 23, 2015 at 2:15 pm #523827Hi!
refuse from bumping into your own thread, because it pushes it behind in our queue.
About which padding and gaps are you talking about? please always provide us with a precise link and even screenshots, so we can see what you want to achieve and be able to inspect the elements in question. You can use imgur.com or dropbox.
Cheers!
AndyOctober 23, 2015 at 6:44 pm #524060Thank you Andy,
Please find the screenshot of the area: http://dns.d.pr/1dMPN/2K9j9aSQ
I added the following code to get the semi-transparent white background between the background image and the text:#home .post-entry { background-color: rgba(255,255,255,0.8); padding: 5px; }
The padding is controlling the top / bottom but how to decrease the sides of this layer as the red arrows are pointing to?
Thank you
October 26, 2015 at 8:55 am #524716Hey!
Where can we find the page? The previous page has been removed: EDITED
Looks like you managed to do it with this:
.page-id-28 .post-entry, .page-id-36 .post-entry, .page-id-49 .post-entry, .page-id-60 .post-entry, .page-id-71 .post-entry, .page-id-234 .post-entry, .page-id-241 .post-entry, .page-id-74 .post-entry { background-color: rgba(255,255,255,.95); padding: 20px; }
Regards,
IsmaelOctober 29, 2015 at 2:32 pm #526767Please check my message in private
October 31, 2015 at 3:52 am #527822 -
AuthorPosts
- You must be logged in to reply to this topic.