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:
Never 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.
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
<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" />
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.
Sorry if this is a beginner question, but does the added code go in any particularly location? The beginning? Does it matter?
The topic ‘Create an empty, black background’ is closed to new replies.