Fork me on GitHub

background images  Bottom

  • I am having trouble with adding a background image to the center area of a theme. I am using a modified version of the Seabreeze theme. I searched the forums and used the suggestions I saw for trying to do this, but I have had no luck.

    My URL is http://www.curseoftime.com and I am using the most current version of PostNuke. Any suggestions would help.

    Thanks!
  • Hi - that is just the HTML in the theme, so the version of PN is unimportant. Just add BACKGROUND="path/to/bgimage.gif" to the cell that you want to have the background in. If it's for the layout in general, add it to the that starts the center block in the themeheader(), or if it's just for news article, blocks, etc.. edit the 's in those sections of the theme.php

    One thing to keep in mind is the the path to the image is *relative* from the root of your PN directory... So, if the bg image is under your theme's images directory it should be:

    Code

    <TD BACKGROUND="themes/MyTheme/images/background.jpg"> - CENTER BLOCK STUFF -</TD>


    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • I want to use a given background for the entire site. Not in the blocks.

    I tried the above in several locations that looked good but all I get is the following errors (with different line numbers)

    Parse error: parse error, expecting `','' or `';'' in /home/adanyec/public_html/themes/ExtraLite/theme.php on line 40

    Fatal error: call to undefined function: themeheader() in /home/adanyec/public_html/header.php on line 188


    Joe Dunn
  • Edit style.css and put the background= in the Body tag

    IE

    Code

    body{ font-family: Verdana; font-size: 10px;background-image: url(../images/AATech_12.gif);}


    --
    Zikula Themes

This list is based on users active over the last 60 minutes.