GithubHelp home page GithubHelp logo

corus-wp-exercise's Introduction

Corus WordPress Exercise

  1. Environment Setup
  2. WordPress Configuration
  3. Slick Slider
  4. The Exercise

Environment Setup

To setup your environment:

  1. Download and install Docker from https://www.docker.com/
  2. Fork https://github.com/ShawONEX/corus-wp-exercise to your own GitHub repo
  3. Clone your new forked repo to a local folder on your computer
  4. Go to the root of the cloned repo in Terminal/Command Prompt/Power Shell (you should see docker-compose.yml in the list of files)
  5. Run the following command: docker-compose up
  6. Open a browser and go to http://localhost:8000 and follow the instructions to complete the WordPress database installation

WordPress Configuration

  1. Go to http://localhost:8000/wp-admin/ and log-in as the administrator
  2. Enable Corus Theme in the appearance settings
  3. Enable Advanced Custom Fields in the plugins section

Slick Slider Usage

The required slick files are contained in the components/slick-slider folder:

  1. CSS file needs to be included in the <head>
  2. Add slick.js before your closing </body> tag (slick depends on jQuery)

HTML Markup

<div class="your-class">
  <div>your content</div>
  <div>your content</div>
  <div>your content</div>
</div>

Initialization

$('.your-class').slick();

The Exercise

Modify the 'Corus Theme' to add the following functionality:

  • Add a custom post type called "gallery". This post type will ONLY have the following fields
    • Title (default WordPress field)
    • Slider Image 1 (Image upload field)
    • Slider Image 2 (Image upload field)
    • Slider Image 3 (Image upload field)
  • Use Advanced Custom Fields to create the three slider image fields (plugin provided in the repo)
  • Create a single post-type page to output the gallery images based on the post_id.
  • Using slick slider http://kenwheeler.github.io/slick/ output the three images to create the "single item" carousel

Instructions

  • Please use OOP where necessary
  • Please use best security & sanitization practices where necessary
  • Please use Git workflow best practices
  • Submit the url to your forked repo with the completed work for review (please ensure that the repo is public)
  • Please do not push anything to this repo

corus-wp-exercise's People

Contributors

balin-banh avatar mdavani avatar

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.