git clone
project.- Grab a fresh Wordpress install and merge into project
- Spin up docker!
Project is setup for git deployment to WP-Engine. Just push master to prod.
git add *
git commit -m "Your message"
git push production master
Make sure your SSH key is added to the WP-Engine keychain.
Uses Wordpress Docker image and MariaDB to spin up a Wordpress compatible container.
docker-compose up -d
SASS files are stored in a /sass/
folder in the theme folder. Gulp is run from the root and configured for the theme subdirectory. All SASS files in folder are compiled down into a single style.css
file in theme root.
gulp sass:watch
gulp sass
Instead of using CSS media queries, use the Bootstrap mixins media-breakpoint-down
, media-breakpoint-up
, and media-breakpoint-between
. See the Bootstrap docs under Responsive Breakpoints and the SASS section
.container {
@include media-breakpoint-down(sm) {
width:50%;
}
}
@include media-breakpoint-up(sm) { ... }
@include media-breakpoint-between(md, lg) { ... }
@include media-breakpoint-down(lg) { ... }
@include media-breakpoint-only(xl) { ... }
<img src="<?php echo get_template_directory_uri(); ?>/img/your_image.jpg" alt="" />
Uses animate.css library with waypoints.js for scroll-activated animations.
- First items on page have animate.css classes added
- Anything you want animated beyond "the fold" has a
.not-animated
class added to it, which makes it transparent (not visible). Add an unique ID to the element. The go to the waypoints file (~theme/js/frontpage.js
) and use the current function as a basis (removes.not-animated
class and adds necessary classes -- IE8 friendly!)
Icon font uses assorted icons from Font Awesome 4.4 and other sets. Any icons that is SVG has to be SVG because of the lack of multi-color functionality on icon fonts (they can be converted to static images if necessary though).
Slider (slick.js)
Slider JS in frontpage template.