laniywh / bootstrap2wordpress

A WordPress theme made for an online course, WordPress Theme Development with Bootstrap.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#bootstrap2wordpress

A WordPress theme made for an online course, WordPress Theme Development with Bootstrap.

Certificate of completion: https://www.udemy.com/certificate/UC-L9WGVDZB/

Demo

##Theme Features

  • Responsive design using Bootstrap
  • Home page template consists of different template parts that can be easily reordered, modified or removed.
  • Use custom post type to conveniently modify dynamic informations like course features, project features, testimonials and resources
  • When editing a page, use custom fields provided to modify dynamic information of the template

How to Install

  1. Download all files as a .zip file
  2. Upload and install it in your WordPress dashboard.

Home Page

The home page is styled as a landing page with different sections showing off a product. Header and footer have beautiful parallax effects.

Easy to Update

Each page is dynamically coded with PHP and HTML so that text, images, icons can be easily updated in the admin area. Custom fields are created for each section of the home page and are nicely grouped together using Advanced Custom Fields.

Edit screen of the home page with all sections of custom fields folded up:

Edit screen of the home page with all sections of custom fields folded up

Custom fields of Boost Your Income Section:

Custom fields of Boost Your Income Section

Here's the dynamic template for Boost Your Income section using custom fields.

```php
<?php echo $income_feature_image['alt']; ?>

<p class="lead"><?php echo $income_section_description; ?></p>

<div class="row">
  <div class="col-sm-6">
    <h3><?php echo $reason_1_title; ?></h3>
    <p><?php echo $reason_1_description; ?></p>
  </div><!-- col-sm-6 -->

  <div class="col-sm-6">
    <h3><?php echo $reason_2_title; ?></h3>
    <p><?php echo $reason_2_description; ?></p>
  </div><!-- .col-sm-6 -->
</div><!-- .row -->
```

Custom fields of Instructor Section:

Custom fields of Instructor Section

Custom post types like course features, project features, testimonials and resources are added to the admin area using Custom Post Type UI. Hence, the user can easily access and edit these items from the left sidebar of the admin area.

Admin area sidebar showing custom post types:

Admin area sidebar showing custom post types

Edit screen of a course feature:

Edit screen of a course feature

Here's how to print out all course features in a loop:

```php 'course_feature', 'orderby' => 'post-id', 'order' => 'ASC') ); ?> have_posts() ) : $loop->the_post(); ?>



Edit screen of a project feature:

<img src="./assets/img/readme/b2w_edit_project_feature.png" alt="Edit screen of a project feature">

  <h2>Resources Page</h2>
  <p>The Resource page shows dynamic resources which can be added easily via admin area &rarr; Resources.</p>

A screenshot of 3 resources:

<img src="./assets/img/readme/b2w_resource.png" alt="A screenshot of 3 resources">

  <h2>Blog Page</h2>
  <p>The blog page's post excerpt is customized with the following style.</p>

A blog post excerpt:

<img src="./assets/img/readme/b2w_blog_excerpt.png" alt="A blog post excerpt">

  <p>There are also a few customized sidebar widgets.</p>

Some customized widgets:

<img src="./assets/img/readme/b2w_blog_widget.png" alt="Some customized widgets">

  <h2>Contact Page</h2>
  <p>The contact page consists of a simple contact form that is made using Contact Form 7.</p>

The contact form on the contact page:

<img src="./assets/img/readme/b2w_contact_form.png" alt="The contact form on the contact page">

Code of the contact form:

<img src="./assets/img/readme/b2w_contact_form_code.png" alt="Code of the contact form">

<h2>Development Environment</h2>
  <p>The theme is developed locally by setting up a localhost with MAMP for easier development, then the local site's database is imported to the online site via phpMyAdmin. However, the local site’s database consists of more than 100 occurrence of the localhost’s address. The online site won’t work until all of those occurrence are changed to the online address. This can be easily done with the help of Search Replace DB, a php plugin that quickly modifies a string throughout a database.</p>

<h3>Tools</h3>

  <ul>
    <li><a href="//underscores.me" target="_blank">Underscores</a> is a WordPress starter theme.</li>
    <li><a href="//wordpress.org/plugins/advanced-custom-fields/" target="_blank">Advance Custom Fields</a> customise WordPress with powerful, professional and intuitive fields.</li>
    <li><a href="//wordpress.org/plugins/custom-post-type-ui/" target="_blank">Custom Post Type UI</a> is an admin UI for creating custom post types and custom taxonomies in WordPress.</li>
    <li><a href="//wordpress.org/plugins/contact-form-7/">Contact Form 7</a> is a contact form plugin for WordPress</li>
    <li><a href="//github.com/interconnectit/Search-Replace-DB" target="_blank">Search Replace DB</a> quickly modifies a string throughout a database.</li>
    <li><a href="//www.phpmyadmin.net/" target="_blank">phpMyAdmin</a> handles the administration of MySQL over the WWW.</li>
    <li><a href="//www.mamp.info/" target="_blank">MAMP</a> is a solution stack used to run dynamic websites on Mac.</li>
  </ul>

About

A WordPress theme made for an online course, WordPress Theme Development with Bootstrap.


Languages

Language:PHP 62.9%Language:CSS 30.4%Language:JavaScript 6.7%