如何正确更改Joomla Protostar模板并使用正确的css和图像文件路径?

时间:2017-05-31 09:41:29

标签: php html css joomla

对于我下周的任务,我们必须知道以下内容:

  • 我们得到一个模板(不是Joomla模板,而是一个包含现有html和css +图像的网站模板)。这个模板我们必须“导入”到Joomla然后在Joomla中添加菜单,文章等
  • 我们必须删除protostar模板文件并粘贴到模板文件中,然后将index.html重命名为index.php

当我这样做时它没有css(因为css和图像的路径)。 例如,我的模板的标准路径是:

<link rel="stylesheet" href="css/animate.css">

然而,这不起作用。 我尝试了一些有用的东西:

<link rel="stylesheet" href="templates/protostar/css/animate.css">

但我不知道为什么模板/ protostar是根?我认为root是index.php所在的文件夹?

如果我对图像做同样的事情

<div class="fh5co-portfolio-figure animate-box" style="background-image: url(images/work_1.jpg);"></div>

<div class="fh5co-portfolio-figure animate-box" style="background-image: url(templates/protostar/images/work_1.jpg);"></div>

这不起作用。因此图片仍然不会显示在页面上。

那么有人可以向我解释这种行为以及如何做到这一点吗?

0 个答案:

没有答案