gjh42 (or anyone else) could you help me? Under Zen Cart Support > Customizing the Look of Your Shop > The Stylesheet Main Page Image your 3rd September 2007 post you provide code that I have been struggling with. I just could not get a non linked image to work on my home page. The non-linked image coding that you provided (with my modifications for the Sage template) for the define_main_page.php was:
<div id="homepage"><?php echo '<img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_TEMPLATE . 'images/Frog1.jpg" alt="Sawhorse Jewelry Designs :: Find your good horse"></img>';?></div>
This displays the frog1.jpg image located in /includes/templates/sage/images/
And it works!!!
I can also change image size using the code below.
<div id="homeShopView"><?php echo '<img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_TEMPLATE . 'images/Frog1.jpg" alt="Sawhorse Jewelry Designs :: Find your good horse" height=338" width=450"></img>';?></div>
However, the image placement default is left align – but I can also align it right:
<div id="homepage"><?php echo '<img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_TEMPLATE . 'images/Frog1.jpg" alt="Sawhorse Jewelry Designs :: Find your good horse" height="270" width="360" align="right" ></img>';?></div>
However, I do not know how to move the image or images exactly where I want it on the page.
You note in that same post “You can add images to the body of the home page in the same place you added the "Whether you're a hardcore Gearhead..." text - define_main_page.php. Just add <img> url's. If you want to position them interestingly, you can include an id="homeImg1" tag and style #homeImg1 in your stylesheet”
I do not understand what you are saying. (I assume that the stylesheet you are talking about is in includes/templates/sage/css/stylesheet.css) Correct?
I do not know PHP at all and XHTML very little - could you be extremely specific on how to move an image around the page and how to add additional images where one would want them?
Thanks