• Resolved cykeb

    (@cykeb)


    Hello,

    I would like to disable the whole background-options of the TwentyEleven-Theme in order to write it on my own in my style.css of my child theme.

    The problem is, when I rewrite the body-section, e.g. like:
    body {
    background: #000000;
    }
    it still uses the normal options.

    I want to do this, because I want to implement some CSS3-styles in the background.

    The homepage:
    http://isleofvibes.de/wordpress/

    Thanks for answers in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter cykeb

    (@cykeb)

    I deleted the image, but e.g. this code just doesn’t work.

    body {
    background:
    radial-gradient(black 15%, transparent 16%) 0 0,
    radial-gradient(black 15%, transparent 16%) 8px 8px,
    radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
    radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
    background-color:#282828;
    background-size:16px 16px;
    }

    add_action( 'after_setup_theme','voodoo_bg_out', 100 );
    function voodoo_bg_out() {
    
    	remove_custom_background();
    }

    in your child functions.php kills the custom bg jobbie

    Thread Starter cykeb

    (@cykeb)

    Worked great, thank you.

    No problem, I’m glad it worked for you!!

    MKubot

    (@mkubot)

    I can’t seem to get this to work. Is this still valid? Any suggestions?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It’s best to create your own thread in reference to this, MKubot. This thread’s conversation ended a long time ago.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘TwentyEleven: Changing background in style.css’ is closed to new replies.