• In my theme I want to create custom header images. So the user can create and edit his own header image as in Twenty Ten etc…

    But now my question:

    Is it possible to place the blogtitle over the header image? And if yes, how?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Put the image in the background, or use absolute positioning for the blog title?

    Cheers

    PAE

    Thread Starter baszer

    (@baszer)

    you mean with image in the background, in the css?

    but there is no php allowed in css…

    You would use the CSS background-image propery or position property. I’m not suggesting you use PHP.

    If you want to save yourself a lot of possible grief in the future you will make all your changes (both CSS and HTML/PHP) in a child theme, by the way.

    HTH

    PAE

    Thread Starter baszer

    (@baszer)

    lol, I think you dont understand what I mean, sorry.

    I try to explain it again.I am creating my own team, so no need for childthemes.

    As known in Twentyten you can choose your own custom header. I can add the code needed for this to my theme. But the images (what I supose) are loaded as an image in the html instead of an Css Background image.

    If it is loaded in the CSS it is easy. But now I am confused. Is it even possible?

    If it’s your own theme, I don’t understand your problem. Just alter the HTML/CSS to load whatever image you want either in the HTML or via a background theme in CSS (probably in a dynamically generated <style> block).

    You have complete control of everything in your own theme, so just write the PHP/HTML/CSS you want.

    Your question was: “Is it possible to place the blogtitle over the header image? And if yes, how?”

    The answer is clearly, “Yes” because you can see loads of themes all over the place that do just that.

    As to how, well, the answer is the one I’ve given you. Just put the blogtitle wherever you want – using absolute positioning in your CSS if you want to retain your <img> element.

    You could use a background image, of course, using PHP to find the url of the selected image relative to the HTML file and writing that to a <style> block in the header of your HTML file. A bit more complicated, but quite doable if your skills are good enough to write your own theme, I would have thought.

    Cheers

    PAE

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Text over Custom header image’ is closed to new replies.