Tagged: ,

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

    #329873

    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.

    #330181

    Hey!

    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,
    Arvish

    #330216

    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.

    Randall

    • This reply was modified 10 years, 2 months ago by randallpacker.
    #330572

    Hey!

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

    Regards,
    Yigit

    #330614

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

    Thanks, Randall

    #330972

    Hi!

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

    Regards,
    Yigit

    #331271

    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.