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?

 
cannonf700 replied on at Permalink Reply
cannonf700
try something like this:
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath(); ?>main.css" />
chuacha replied on at Permalink Reply
chuacha
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;
}
chuacha replied on at Permalink Reply
chuacha
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

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.