PACE
Permalink
Hello, can someone tell if this difficult to implement with concrete 5?
http://github.hubspot.com/pace/docs/welcome/...
http://github.hubspot.com/pace/docs/welcome/...
hey ramon, thanks for the reply . html is familiar but concrete 5 does not open to me. Mayby you can make a tutorial how to bring pace under bootstrap to the theme? :)
- Make a "pace" directory in your theme
- Extract "themes" directory and "pace.js" from the download (on the PACE website) into that directory
- Open up /elements/header_top.php (or header.php) of your theme
- Add this code before "</head>":
<script src="<?php echo $view->getThemePath()?>/pace/pace.js"></script>
<link href="<?php echo $view->getThemePath()?>/pace/themes/pace-theme-barber-shop.css" rel="stylesheet" />
This will use the "Barber Shop" theme. You can change the .css file to point to another theme if you don't like it. It depends what theme you are using where your theme is located.
Here are some docs about concrete5 theming:
https://documentation.concrete5.org/developers/designing-for-concret...
- Extract "themes" directory and "pace.js" from the download (on the PACE website) into that directory
- Open up /elements/header_top.php (or header.php) of your theme
- Add this code before "</head>":
<script src="<?php echo $view->getThemePath()?>/pace/pace.js"></script>
<link href="<?php echo $view->getThemePath()?>/pace/themes/pace-theme-barber-shop.css" rel="stylesheet" />
This will use the "Barber Shop" theme. You can change the .css file to point to another theme if you don't like it. It depends what theme you are using where your theme is located.
Here are some docs about concrete5 theming:
https://documentation.concrete5.org/developers/designing-for-concret...
Thanks a lot! .. it works almost. :) our theme seems to be both header_top.php and header.php
The problem is that the animation will remain on the screen permanently. Eg, animation "big-counter" jammed in 99% ? Something goes wrong..
The problem is that the animation will remain on the screen permanently. Eg, animation "big-counter" jammed in 99% ? Something goes wrong..
No JS errors in your console (F12)? Haven't used this before, so don't know the ins and outs of this thing. Does it do 99% for every page or just some of them?
Installation does not have a problem. Problem is in the browser. It does not work in Firefox, but works in chrome without problems.
http://github.hubspot.com/pace/...
You could bring that to your theme if you want to. As for "is it difficult" always will have a relative answer, since it depends on how much experience you have (with both HTML and concrete5). You could also make it as an Add-On, but that probably will be too much for something simple (at least, if you don't really configure anything that is).