2016-07-25 42 views
0

我无法确定Revolution Slider的jQuery版本是否可以与Squarespace网站一起使用。 documentation提到您需要将包含文件的多个文件夹(assets,css,fonts,js)上传到网络服务器,您无法真正使用Squarespace(您可以上传单个JavaScript文件或其他资产文件)。但也许有一个文件夹结构是没有必要的。是否有可能在Squarespace上使用Revolution Slider?基于从文档以下文本在Squarespace上使用Revolution Slider

回答

0

Please upload the <strong>revolution</strong> folder to your server. In this folder you will find the following subfolders containing all of the items content: 

    assets 
    css 
    fonts 
    js 

If your Slider Revolution is placed in a different folder, don’t forget to change the file paths in the upcoming examples! 

看来,你可以通过启用Developer Mode/Platform在Squarespace使用。您可以在Squarespace的“assets”文件夹中添加名为“revolution”的文件夹。该“/ assets/revolution”文件夹将包含文档中引用的所有文件(assets,css,fonts,js)。然后按照文档中的说明更改文件路径。

我碰巧使用Dev。模式完全,所以虽然我非常熟悉它,但我没有使用你提到的滑块。然而,我没有看到任何文件导致我相信这是行不通的。我已经使用Dev以类似的方式添加了其他插件。模式/平台。

这将要求您学习和使用开发人员平台,您需要考虑这一点,因为这会增加使用此滑块的开销(您不仅要学习使用滑块,还要学习Squarespace开发人员平台,如何/在哪里添加脚本和文件,Git/SFTP等)

您当然可以从Squarespace Template启用Dev。从那里开始,然后编辑这些文件只需要最低限度地实现滑块的使用(将文件添加到/资产,添加脚本,完成)。

从文档中,您将在<head></head>标签之间添加以下内容(使用编辑后的文件路径)“”。

- RS5.0 Main Stylesheet --> 
<link rel="stylesheet" type="text/css" href="/assets/revolution/css/settings.css"> 

<!-- RS5.0 Layers and Navigation Styles --> 
<link rel="stylesheet" type="text/css" href="/assets/revolution/css/layers.css"> 
<link rel="stylesheet" type="text/css" href="/assets/revolution/css/navigation.css">  

<!-- RS5.0 Core JS Files --> 
<script type="text/javascript" src="/assets/revolution/js/jquery.themepunch.tools.min.js?rev=5.0"></script> 
<script type="text/javascript" src="/assets/revolution/js/jquery.themepunch.revolution.min.js?rev=5.0"></script> 

从那里,这将会是添加“滑块标记”和初始化脚本或者在Squarespace LayoutEngine代码块,或“硬编码”中的模板文件本身(这后一种选择的问题将需要比使用代码块更多地导航/编辑模板文件)。我建议先尝试使用代码块。

相关问题