Problems getting a theme to display and link to the css style sheet.
Permalink
Hi. I have followed the online tutorials to create themes from html files.
I have changed the index page to default.php but I get no images displayed in my preview or when I activate the page.
I have added the <?=$this->getThemePath()?> path on all my links but the page still does not display. I think the problem is the path address.
I am using xammp and windows xp.
Any ideas?
I have changed the index page to default.php but I get no images displayed in my preview or when I activate the page.
I have added the <?=$this->getThemePath()?> path on all my links but the page still does not display. I think the problem is the path address.
I am using xammp and windows xp.
Any ideas?
try something like this:
thank you
it solved my problem too with images in html...
but maybe you know how to show images from css?
I have included css file like that
href="<?php echo $this->getStyleSheet('global.css')?>"
and it works.. but background pictures from css not shown
now I'm defining it just like that
.login
{
background-image:url("../img/login_backgr.png");
background-repeat:no-repeat;
}
it solved my problem too with images in html...
but maybe you know how to show images from css?
I have included css file like that
href="<?php echo $this->getStyleSheet('global.css')?>"
and it works.. but background pictures from css not shown
now I'm defining it just like that
.login
{
background-image:url("../img/login_backgr.png");
background-repeat:no-repeat;
}
problem solved.. I just instead of using that
href="<?php echo $this->getStyleSheet('global.css'); ?>"
do this
href="<?php echo $this->getThemePath(); ?>/global.css"
now all images are shown
href="<?php echo $this->getStyleSheet('global.css'); ?>"
do this
href="<?php echo $this->getThemePath(); ?>/global.css"
now all images are shown