![]() |
Images on Home Page
I am having problems with displaying images on my Home page.
First, I created a 'Test' page in the Static Page section of Administration and got it to display images and texts there exactly like I wanted it to appear. But when I copied and pasted the code that makes up the 'Test' static page into my Home page via Webmaster Mode, the text copies and I can see it, but the image isn't there, only a '?' in a blue box. This is the code I used: <img height="130" alt="" src="{$ImagesDir}/Ronin-Screenplay-Summary.jpg" width="130" /> <o:p></o:p></div></span></span></div> I'm guessing the problem is because Test pages are HTML but the Home page is php. Correct? Please could you suggest how to solve this problem. Many thanks, Melvyn P. Heyes. |
Re: Images on Home Page
Static pages are individual pages, they do not show on front page. Ifyou want to show something on front page edit welcome.tpl
|
Re: Images on Home Page
I am editing the Home page content via Webmaster mode, not through the template (I don't want to change format, only content!). My problem is images that won't appear. I can get them to appear in a static page but they won't appear even if I transfer the code to the home page via Webmaster.
|
Re: Images on Home Page
You can take out the <o:p></o:p> code... That is pure Microsoft Word code... Visually doesn't matter, but unnecessary.
|
Re: Images on Home Page
You can't use this in webmaster mode:
{$ImagesDir} Need to use skin1/images or whatever the real directory is. Smarty doesn't work in smarty variables. |
Re: Images on Home Page
Beat me to the second :)
As balinor said - if you want to use Webmaster mode you have to use path not smarty variable. If you edit welcome.tpl or any other template file in a text editor then you can use smarty variables in there. |
Re: Images on Home Page
Thanks Padraic,
So if I write the following in the static pages: <img src="{$ImagesDir}/ Ronin-Screenplay-Summary.jpg " alt="" width="130" height="130"/> What do I write in the Home page if my images are in: /home/myusername/mywebsite/htdocs/skin1/images Appreciate your help here. M. |
Re: Images on Home Page
Not the whole server path, just skin1/images/yourimagename.jpg
|
All times are GMT -8. The time now is 01:47 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.