Tagged: background, black
-
AuthorPosts
-
October 3, 2014 at 7:56 pm #329870
I am trying to create a perfectly empty black background for a page, but can’t seem to remove the lines at the top and bottom of the content area. Also, the background of the content area is a slight grey. I have set every single background and line parameter to black in the General Styling section of the Theme Options, but still have these issues. Here is the link:
http://www.postrealityshow.com/10-03-14/
Thank you.
October 3, 2014 at 8:02 pm #329873Never mind, I guess the settings were cached, I now have a perfect black background. Wondering though how to prevent settings from caching? It makes it hard to see what you are doing.
October 4, 2014 at 12:12 pm #330181Hey!
To turn off cache, assuming you’re not using a third party cache plugin, add the following to header.php in enfold/enfold child theme just after the
<head>tag.<meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> <meta http-equiv="pragma" content="no-cache" />Regards,
ArvishOctober 4, 2014 at 3:59 pm #330216Hi Arvish,
This is the first time I have added php to my child theme, do I copy the whole header.php file into the child theme folder, or just a blank header.php file, then adding the above code?
Thanks for your help.
Randall
-
This reply was modified 11 years ago by
randallpacker.
October 5, 2014 at 9:37 pm #330572October 5, 2014 at 11:03 pm #330614Sorry if this is a beginner question, but does the added code go in any particularly location? The beginning? Does it matter?
Thanks, Randall
October 6, 2014 at 4:30 pm #330972October 7, 2014 at 2:11 am #331271Thanks Yigit, this is very helpful.
-
This reply was modified 11 years ago by
-
AuthorPosts
- The topic ‘Create an empty, black background’ is closed to new replies.
