Link to files theme
Permalink 1 user found helpful
Hello.
I am building a theme and the C5 doesn't detect any file.
I think I am doing it correctly. Here is my code:
And after:
Thank you for your help.
Martí
I am building a theme and the C5 doesn't detect any file.
I think I am doing it correctly. Here is my code:
<link href="<?=$this->getThemePath()?>main.css" rel="stylesheet" type="text/css" /> <link href="<?=$this->getThemePath()?>typography.css" rel="stylesheet" type="text/css" />
And after:
<div class="footer"> <img src="<?=$this->getThemePath()?>/images/chrome.png" alt="Google Chrome" width="20" height="20" align="absmiddle" /> </div>
Thank you for your help.
Martí
I have tried it before, it doesn't works.
Thank you,
Martí
Thank you,
Martí
Ok I've found a solution to the css problem. I post here:
But I'm still having the issue with the image.
Thank You,
Martí
<style type="text/css" media="screen">@import "<?php echo $this->getStyleSheet('main.css')?>";</style>
But I'm still having the issue with the image.
Thank You,
Martí
What's wrong?
Have you got padding in the footer or other styles to allow for size of image?
Have you got padding in the footer or other styles to allow for size of image?
I think that the path to the image it's wrong, but I don't know why.
In the code I put:
But when I go to the explorer I cannot see the image (appears like when a link is broken). I right-click on the image and I copy its URL:
http://myweb/%3C?=$this-%3EgetThemePath()?%3E/images/chrome.png...
Thanks,
Martí
In the code I put:
<img src="<?=$this->getThemePath()?>/images/chrome.png" (etc..)>
But when I go to the explorer I cannot see the image (appears like when a link is broken). I right-click on the image and I copy its URL:
http://myweb/%3C?=$this-%3EgetThemePath()?%3E/images/chrome.png...
Thanks,
Martí
Ok, I solved the problem.
Here's the code:
Martí
Here's the code:
<img src=" <?php echo $this->getThemePath(); ?>/img/chrome.png" alt="Google Chrome" width="20" height="20" align="absmiddle" />
Martí
Don't know exactly what C5 cant find?
But you need the forward slash for your style sheets: '/'