WordPress.org

Ready to get started?Download WordPress

Forums

How Can I Change My Background on K2? (4 posts)

  1. Borisko99
    Member
    Posted 2 years ago #

    Alright, so I've just made a blog and installed my favourite theme called "K2" and I'm trying to change it's background. I've clicked on every single link on google search and I've looked at K2's support blog but I couldn't find anything or they didn't work. Can you please help me to change my background? I want to insert an image instead of the annoying grey color.

    If you have read all the thing at the upside, you'll problably understand my problem.

    Sorry for bad English, English is not my main language...

    My Blog: http://www.boriskocp.com

  2. peredur
    Member
    Posted 2 years ago #

    If I understand you correctly, the background colour you're not happy with is set in this style rule:

    body {
      ...
      background-color: #EEEEEE;
      background-image: none;
      ...
    }

    As always, I would advise you to make changes in a Child Theme. It takes about 5 minutes to do, so there's no excuse not to, really, unless your theme explicitly fails to support child themes.

    Assuming you've made a minimal child theme, all you have to do is to upload your image to somewhere sensible and reference it in a body style rule in the child theme's style sheet.

    If it was me, I'd create an images directory in my child theme's directory and so add a style rule like this:

    body {
      background-image: url('images/name-of-your-image.png');
    }
    
    HTH
    
    PAE
  3. Borisko99
    Member
    Posted 2 years ago #

    That really worked! Thank you!

  4. peredur
    Member
    Posted 2 years ago #

    De nada

    PAE

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags