CSS link incorrect on localhost

More
12 years 10 months ago #31360 by PaysB
I installed the hot_wine25_hotstart.zip package on a localhost (XAMPP). Unfortunately the stylesheets and javascript are not loading correctly. The same problem has been posted by someone else a couple of months ago, but without a solution ( see this post ).

I had a look in the source code of the loaded homepage. To include .css and .js files it says:
/intranet/mader\templates\hot_wine/

I guess this should be:
/intranet/mader/templates/hot_wine/

I think the backslashes are generated by one of the template PhP files, but I have no clue where.

All default Joomla templates are loading correctly.

Could you please help me with this?

Thank you!

Please Log in to join the conversation.

More
12 years 10 months ago #31364 by ivan.milic
Open index.php of template, around line 15 there is template path calculation it should look like this:

$template_path = $this->baseurl.'/templates/'.$this->template;

if you downloaded template few months ago it may be that this line is not like that.

Please Log in to join the conversation.

More
12 years 10 months ago #31365 by PaysB
I bought and downloaded this template today.

I changed the line in the template index.php and now I get the correct layout.

One issue left: I do not see the logo in the template layout, although I activated and selected the logo parameters in the template settings.

I discovered the same strange behaviour in the source code for the logo image link. It says:
/intranet/mader/templates/hot_wine\images\

In the template index.php line 256 a see a code:
require(dirname(__FILE__).DS.'library'.DS.'logo.php');

Do I have to make a modification here, or is it somewhere else where I have to look?

I have to admit that I am not a PhP wizard

Please Log in to join the conversation.

More
12 years 10 months ago #31375 by ivan.milic
DS is constant for file system path separator on OS. You can replace DS with "/" on linux and "\" on windows.

Please Log in to join the conversation.

Time to create page: 0.188 seconds
Powered by Kunena Forum