• I’m trying to add a html code so i can add a background to my theme but not sure what i am doing wrong..it doesn’t seem to work the html code is one that was created on a free site that i found and it looks great when they do it and they give me the html codes and pictures to copy and enter but it doesn’t work for me
    the theme i am using is twenty-fifteen

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Laura0268,

    Can you please have a look at this article to set background-image: https://css-tricks.com/perfect-full-page-background-image/ ?

    You can try adding the following CSS:

    html {
      background: url(https://placeholdit.imgix.net/~text?txtsize=33&txt=350%C3%97150&w=350&h=150) no-repeat center center fixed;
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
    }

    Cheers!

    Thread Starter Laura0268

    (@laura0268)

    Nirmalya
    Im so new to this wordpress and confused on what i should do to have the look
    this is what i need to add to my page in order for it to have the look i want…
    <html>
    <head>
    <title>Your title goes here</title>
    </head>
    <body background=”blue_dot.jpg”>

    <p><center><table width=”90%” cellpadding=40 cellspacing=0 border=1 background=”burg_check.jpg”>
    <tr>
    <td width=”100%”>
    <p><center><table width=”100%” border=1 background=”tan_mini_ck.jpg”>
    <tr>
    <td width=”100%”>Your Page Content Goes Here
    </td>
    </tr>
    </table>
    </center>
    </td>
    </tr>
    </table>
    </center>
    </body></html>

    Hi Laura0268,

    Try replacing

    <body background="blue_dot.jpg">

    with

    <body>

    and add the following code before </head>

    <style type="text/css">
        html {
          background: url(https://placeholdit.imgix.net/~text?txtsize=33&txt=350%C3%97150&w=350&h=150) no-repeat center center fixed;
          -webkit-background-size: cover;
          -moz-background-size: cover;
          -o-background-size: cover;
          background-size: cover;
    }
    </style>

    and then replace https://placeholdit.imgix.net/~text?txtsize=33&txt=350%C3%97150&w=350&h=150 with the link to your image.

    Cheers!

    Thread Starter Laura0268

    (@laura0268)

    i know this is going to sound stupid but when I’m on my home page and i go to edit from dashboard there is a whole list of things i can click on to edit i have gone through most of them but can’t find the home page one where i can add the html i have

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Editing theme to add background’ is closed to new replies.