getThemePath() no longer working after half a year.
Permalink
Hi,
I run a website with concrete5 (5.6.3.1) since about half a year. Since today, there is something wrong with. Hyperlinks, included CSS/JS files and so on are not working any more:
When I add the following lines to the template...
...I get:
I think this should be:
I did not perform any updates or changed something. My hoster didn't do any updated as well (due to his webpage).
Any ideas what happened?
I run a website with concrete5 (5.6.3.1) since about half a year. Since today, there is something wrong with
getThemePath()
<link rel="stylesheet" type="text/css" href="//concrete/css/ccm.base.css" /> <script type="text/javascript" src="//concrete/js/jquery.js"></script> ... <link href="//themes/mytheme/style/style.css" rel="stylesheet" type="text/css">
When I add the following lines to the template...
<?php echo $this->getThemePath(); ?>
...I get:
//themes/mytheme
I think this should be:
/themes/mytheme
I did not perform any updates or changed something. My hoster didn't do any updated as well (due to his webpage).
Any ideas what happened?
This is indeed strange.
Alternatively for your css you can try:
or you can try this code to navigate to your theme path:
These are merely other ways to navigate to your files but give them a try.