Wrapbootstrap integration

我与影子孤独终老i 提交于 2019-12-10 11:41:45

问题


Good Afternoon All,

I'm having trouble integrating this template into my rails application. I've changes all the images and loaded all the files into their relevant areas. However they still have the subdirectories.

Does anyone know of a guide I can walk through which might explain how you do this, especially to include the revolution-slider which has a whole subdirectory of CSS and images.

Template being used:

https://wrapbootstrap.com/theme/pixma-responsive-multipurpose-template-WB0B348C6

Thanks for the help.


回答1:


Suggesting that you are on Rails > 3 with asset-pipeline on, the process of integration should be trivial like in this Rails guide, look for 2.2.2 - using index files):

  1. Copy your directories under your app/assets/javascripts|stylesheets , for example : app/assets/stylesheets/revolution-slider
  2. Create a new manifest file named index.css (for stylesheets assets) and index.js (for js assets) . It should be inside the library directory and should contain regular directives for including assets , usually *= require_tree . for styles and //= require_tree . for js.
  3. Finally, include your library in your main manifest file application.css|js like this:

    //=require revolution-slider
    

for javascript library

    *= require revolution-slider

for css library.



来源:https://stackoverflow.com/questions/19813507/wrapbootstrap-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!