Header image

I'd like to know, like i can import or insert an image .jpg or .gif us header in the theme stopdesign to change this code:

<h1><?php echo getGalleryTitle(); ?></h1>

thanks

Comments

  • @Borma

    You can use CSS styling to add a background image to a div surrounding that <H1> tag. I see this a lot on Wordpress blog pages.

    Thus you'd have:

    `

    <?php echo getGalleryTitle(); ?>

    `

    And in a css stylesheet:

    `.heading {

    background-image: url(/themes/yourtheme/yourimage.jpg);

    }`

    The syntax is not altogether correct on the above [edited by trisweb-- it is now!], so you may want to peruse CSS information on the web for the correct syntax. You can also change the heading text colors, etc.

    The side benefit of this is depending on the image you use, the heading text will "overlay" above the background image.

    This is how most websites handle their CSS based headings now, especially in the blogging world.

    If that doesn't push you in the right direction, let me know and I can dig up some more examples.
Sign In or Register to comment.