Giter VIP home page Giter VIP logo

alps-wordpress's Introduction

ALPS WordPress Theme Setup

Theme installation via WordPress Admin Panel

  1. In your WordPress admin panel, navigate to Appearance->Themes
  2. Click Add New
  3. Click Upload Theme
  4. Upload the zip file that you downloaded.

Theme settings

###Set front and posts page

  1. In your WordPress admin panel, navigate to Settings->Reading
  2. Set Front page displays to a static page
  3. Select a page from each dropdown
  4. Save Changes

###Set page template

  1. In your WordPress admin panel, navigate to Pages
  2. Edit page
  3. In the sidebar, navigate to Page Attributes*
  4. Select Template from the dropdown

###Add widgets to sidebar

  1. In your WordPress admin panel, navigate to Appearance->Widgets
  2. Drag widget to widget area
  • Primary Top / Primary Main / Primary Bottom (Home Template): These areas allow you to put content at the top and bottom of the main content areas on the home template.
  • Footer: The area at the bottom of the page.
  • Sidebar (Breakout Block): This area is located at the top of the sidebar, and is pulled out from the sidebar area a bit.
  • Sidebar: This is the main aside on the page.

###Add menus

  1. In your WordPress admin panel, navigate to Appearance->Menus
  2. Create a menu
  3. Add links
  4. Go to Manage Locations tab
  5. Select location for the menu to appear
  • Primary Navigation: The main navigation for the page
  • Secondary Navigation: Appears above the main navigation
  • Secondary Footer Navigation: Appears above the main footer navigation
  • Primary Footer Navigation: The main footer navigation at the bottom of the page
  • Tertiary Navigation: Appears below the page header on the News Template

ALPS WordPress Theme Development

Sage uses gulp as its build system.

Sage is a WordPress starter theme based on HTML5 Boilerplate, gulp, and Sass, that will help you make better themes.

Install gulp

Building the theme requires node.js. We recommend you update to the latest version of npm: npm install -g npm@latest.

From the command line:

  1. Install gulp and Bower globally with npm install -g gulp bower
  2. Navigate to the theme directory, then run npm install
  3. Run bower install

You now have all the necessary dependencies to run the build process.

Available gulp commands

  • gulp — Compile and optimize the files in your assets directory
  • gulp watch — Compile assets when file changes are made
  • gulp --production — Compile assets for production (no source maps).

Using BrowserSync

To use BrowserSync during gulp watch you need to update devUrl at the bottom of assets/manifest.json to reflect your local development hostname.

For example, if your local development URL is http://alps-wp.dev you would update the file to read:

...
  "config": {
    "devUrl": "http://alps-wp.dev"
  }
...

Documentation

Sage documentation is available at https://roots.io/sage/docs/.

Requirements

Prerequisite How to check How to install
PHP >= 5.4.x php -v php.net
Node.js 0.12.x node -v nodejs.org
gulp >= 3.8.10 gulp -v npm install -g gulp

For more installation notes, refer to the Install gulp section in this document.

Features

  • gulp build script that compiles both Sass and Less, checks for JavaScript errors, optimizes images, and concatenates and minifies files
  • BrowserSync for keeping multiple browsers and devices synchronized while testing, along with injecting updated CSS and JS into your browser while you're developing
  • asset-builder for the JSON file based asset pipeline
  • Theme wrapper
  • ARIA roles and microformats
  • Posts use the hNews microformat
  • Multilingual ready and over 30 available community translations

alps-wordpress's People

Contributors

designerbrent avatar itsbm avatar tpitre avatar

Watchers

 avatar  avatar

Forkers

devuneb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.