WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] TwentyEleven: Changing background in style.css (7 posts)

  1. cykeb
    Member
    Posted 2 years ago #

    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.

  2. cykeb
    Member
    Posted 2 years ago #

    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;
    }

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    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

  4. cykeb
    Member
    Posted 2 years ago #

    Worked great, thank you.

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

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

  6. MKubot
    Member
    Posted 1 year ago #

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

  7. Andrew
    Forum Moderator
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic