• Brucezwarts

    (@brucezwarts)


    Dear co-users ??

    I have a blanc WP template here with a frame in the middle (for content).
    I would like to put a background image in it.
    Since im a newbie, i cant seem to find the right adjustments of code and where to put it.

    https://www.thehazeworks.com/test2.php

    I want a bg image in the white area.
    Now where and what code do i need to put, to get my background???
    Please help! Im trying to solve this for ages and tried sooo many codes.
    The only thing i got was a image in the GREY area in the background…:(

Viewing 12 replies - 1 through 12 (of 12 total)
  • peredur

    (@peredur)

    I don’t want to sound condescending, but if you don’t understand even the very basics of HTML/CSS, not to mention PHP, I don’t think you’re going to have much success in building a WordPress template from scratch. For example, this is not valid anything, as far as I know:

    <STYLE="background-image: https://www.thehazeworks.com/header2.jpg('uri')"></style>

    And it’s in the body, too. But even in the head, it’s still invalid.

    There are many other problems, too.

    I really don’t want to be unkind about this, but it would be wrong of me to give you the impression that you could develop a WordPress theme from scratch without even a very basic grasp of HTML/CSS/PHP. My advice would be to start with one of the 1,500 or so free themes that are already written.

    After you’ve got your site going with a pre-written theme, you could start making some alterations in a child theme. But you need to know a bit of CSS/HTML/PHP first.

    HTH

    PAE

    Thread Starter Brucezwarts

    (@brucezwarts)

    Well thanks for you repley, but you shouldnt look too much into that page. Its total crap anyways. Thats why its a test page because im only messing around with the background…and there are codes still in there on several place at the wrong line..i know that. But all i want, is a background.

    Thread Starter Brucezwarts

    (@brucezwarts)

    Other than that, i tried several themes and used their template, but NON of them has a custom background image ON the content area…so i dunno where to start. WHY is it so hard, to put a background on your content page…i dont get it.

    peredur

    (@peredur)

    Well, could I just ask in what way this has anything to do with WordPress?

    Your page is just a straightforward HTML page. This forum is for problems with WP themes: not for teaching basic CSS/HTML.

    If you have a theme related problem, we’ll be delighted to try to help.

    Cheers

    PAE

    peredur

    (@peredur)

    When you have a theme, you can make a child theme from it and set a background image in the child theme’s style sheet:

    some-selector {
      background-image: url("path/to/image.png");
    }

    Remember the path is relative to the style sheet.

    Cheers

    PAE

    Thread Starter Brucezwarts

    (@brucezwarts)

    Alright, let me explain ??

    https://www.thehazeworks.com

    If you go there…you see an intro page, if you hit enter, you will go to the pages with the twenty eleven theme.

    Its like this, the INTRO page…with the video…is where i have the original problem. This is just a blanc page with a background and a youtube video on front. My problem is, that the resolution SHIFTS my video, and the background varies depending on the users resolution.
    So my idea was, to make a template, with a centered content area.
    So that i can put the background in there, and it would solve the resolution problem for the users, then add the youtube video.

    So all i want to do is, make an intro page with a background that doesnt fall out of screen when different users enter the side, plus as you can see, i want the youtube video positioned on the right spot.

    So thats the whole problem actually. I hope you guys can give me ANY solution to my problem here…CHEERS!

    Thread Starter Brucezwarts

    (@brucezwarts)

    *sigh*

    alright…i meant THIS intro page:

    https://thehazeworks.com/splash.php

    peredur

    (@peredur)

    Nope. It takes me to a page that runs some video and makes some noise but doesn’t allow me to do anything. Hitting enter, or anything else does nothing for me.

    Cheers

    PAE

    Thread Starter Brucezwarts

    (@brucezwarts)

    Well…it must. Its working right over here…and works on other computer as well…in firefox…its just a link

    Thread Starter Brucezwarts

    (@brucezwarts)

    Lets put it in other words.

    How do i put a background image in twenty eleven theme on the content area?

    cudjex

    (@cudjex)

    background:url(images/bg.png);

    we should know content are div of twenty eleven

    Thread Starter Brucezwarts

    (@brucezwarts)

    thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Background image on content newbie help’ is closed to new replies.