Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #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:


    Thank you.


    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 <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" />



    Hi 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.


    • This reply was modified 5 years, 2 months ago by  randallpacker.


    Please copy whole file and then add suggested code to the file



    Sorry if this is a beginner question, but does the added code go in any particularly location? The beginning? Does it matter?

    Thanks, Randall



    Please find <head> tag and add your core right below it



    Thanks Yigit, this is very helpful.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Create an empty, black background’ is closed to new replies.