I’ve read through all the forum posts on this, and I still can’t get it to work.
I have a one column home page, and I want to display an image under the header and above the footer.
I’ve tried a few different codings in the static block to call the image, and I’ve the put references to the block in different places… the “custom design” tab, the “page content” box, in phtml files, in xml files…
Can someone help me through this?
I have a static block “home_splash” that just needs to contain one image, in the images folder under skin. How exactly do I call the image in the static block, and where exactly do I put the reference to the block? One place, two places?
Thanks so much! Most things I’ve been able to figure out as I’ve gone along here, but I’ve seen so many different answers for this sort of problem that I think I’ve gotten myself confused.
If I follow you, I will state first something you probably know, but to make sure
CMS...Manage Pages (NOT Static Blocks) click on Home Page
There you will find the big white block
Put all the html, js, flash etc you want in theer. For images, with sites that use rewrite, I alwasy use the full url to the img, ie
<img src="http://www.domain.com/skin/frontend/default/default/images/image.jpg" width="nnn" height="nnn">
using relative doesn’t generally work as the page is assembeled on the fly from the db I guess,so if you put
<img src="/skin/frontend/default/default/images.image.jpg" width="nnn" height="nnn">
I find it generally doens’t work. I always use full urls and it seems to work.
I had a similar problem with the skin for a Flash Video, no matter where I put it, the block/page showed the flash, but not the skin. Finally in the flash project I specified the FULL url to where the skin resides and it worked fine.
If I follow you, I will state first something you probably know, but to make sure
CMS...Manage Pages (NOT Static Blocks) click on Home Page
There you will find the big white block
Put all the html, js, flash etc you want in theer. For images, with sites that use rewrite, I alwasy use the full url to the img, ie
<img src="http://www.domain.com/skin/frontend/default/default/images/image.jpg" width="nnn" height="nnn">
using relative doesn’t generally work as the page is assembeled on the fly from the db I guess,so if you put
<img src="/skin/frontend/default/default/images.image.jpg" width="nnn" height="nnn">
I find it generally doens’t work. I always use full urls and it seems to work.
I had a similar problem with the skin for a Flash Video, no matter where I put it, the block/page showed the flash, but not the skin. Finally in the flash project I specified the FULL url to where the skin resides and it worked fine.
You can use a special notation to get your URL’s in the static block / cms area:
//in place of this: <img src="http://www.domain.com/skin/frontend/default/default/images/image.jpg" width="nnn" height="nnn" />
If I follow you, I will state first something you probably know, but to make sure
CMS...Manage Pages (NOT Static Blocks) click on Home Page
There you will find the big white block
Put all the html, js, flash etc you want in theer. For images, with sites that use rewrite, I alwasy use the full url to the img, ie
<img src="http://www.domain.com/skin/frontend/default/default/images/image.jpg" width="nnn" height="nnn">
using relative doesn’t generally work as the page is assembeled on the fly from the db I guess,so if you put
<img src="/skin/frontend/default/default/images.image.jpg" width="nnn" height="nnn">
I find it generally doens’t work. I always use full urls and it seems to work.
I had a similar problem with the skin for a Flash Video, no matter where I put it, the block/page showed the flash, but not the skin. Finally in the flash project I specified the FULL url to where the skin resides and it worked fine.
You can use a special notation to get your URL’s in the static block / cms area:
//in place of this: <img src="http://www.domain.com/skin/frontend/default/default/images/image.jpg" width="nnn" height="nnn" />
Interesting, thanks thats good to know. Does that =sign really belong there though
“{{skin url=images
rather than
“{{skin url/images
???
also seems like if there are two open curlys there should be two closed curlys? Not sure I totally follow, but with a little experimentation it can probably save some typing, which is always welcome.
I will experiment with that. Hadn’t thought of it, could make life a bit easier! Thanks.
If I follow you, I will state first something you probably know, but to make sure
CMS...Manage Pages (NOT Static Blocks) click on Home Page
There you will find the big white block
Put all the html, js, flash etc you want in theer. For images, with sites that use rewrite, I alwasy use the full url to the img, ie
<img src="http://www.domain.com/skin/frontend/default/default/images/image.jpg" width="nnn" height="nnn">
using relative doesn’t generally work as the page is assembeled on the fly from the db I guess,so if you put
<img src="/skin/frontend/default/default/images.image.jpg" width="nnn" height="nnn">
I find it generally doens’t work. I always use full urls and it seems to work.
I had a similar problem with the skin for a Flash Video, no matter where I put it, the block/page showed the flash, but not the skin. Finally in the flash project I specified the FULL url to where the skin resides and it worked fine.
You can use a special notation to get your URL’s in the static block / cms area:
//in place of this: <img src="http://www.domain.com/skin/frontend/default/default/images/image.jpg" width="nnn" height="nnn" />
I am also looking to have an image between the header and footer in a single column layout on my homepage, but for some reason my image will not display. When i preview the page it cannot find the link. I’ve been referring to this thread and the designers guide but I must be overlooking something. I am also using a local testing server if that has anything to do with it…