bugsworld85 / project-blank-canvas

This is a short mini project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About This Project

Let's face it, I couldn't really disclose whom this project is for. But one thing's for certain, somebody might need this code snippet which I am glad to share.

This is a blank Wordpress theme derived from Blank Canvas. I don't hold any rights on this theme. It's just for a short term mini project. Credits to its creators. All I did was inject VueJS into it. That's it.

Features

  • Enable the use of Vuejs Components.
  • Have the capability of using npm packages to your Wordpress application.

Pre-Requisites

  • Make sure Wordpress 5+ is installed with database and is already running on a localhost or remote server.
  • Make sure Seedlet theme is installed as Blank Canvas seems to be a child of that theme. You can search and install it within Appearance->Themes page or download it from Wordpress themes library.
  • Make sure Day and name is checked in Settings->Permalinks page.

Installation

There are 2 ways to install this theme into your Wordpress application.

Option 1:

$ cd <your-wordpress-dir>/wp-content/themes
$ git clone git@github.com:bugsworld85/project-blank-canvas.git blank-canvas

Option 2:

Download this repository from Github as zip and upload it via Appearance->Themes in your WP admin dashboard.

Important: Please change zip filename to blank-canvas.zip. Else, this theme will not work properly.

Note: Do not forget to activate the theme within Appearance->Themes


Setup Sample Page

  • create a page with WP native blocks in this structure:
    Page Content
    ├─Columns
    │   └─ Column #[class: top-section]
    │       ├─ H1 Heading #[align: center, class: font-lora, color: white]
    │       └─ Paragraph #[align: center, class: font-montserrat, color: white, font-size: 14px]
    ├─Columns #[class: donation-block]
    │   └─ Column #[class: donation-box-container]
    │       └─ Shortcode [donation-box]
    ├─Columns #[class: two-column-section]
    │   ├─ Column
    │   │   └─ Image #[class: border-radius-sm]
    │   └─ Column #[class: donation-block-quote]
    │       ├─ H5 Heading #[class: font-lora]
    │       └─ Paragraph #[class: font-montserrat, font-size: 14px]
    └─ Paragraph
    Note on the above structure: The lines right after # are page block settings which are mandatory.
  • Make sure Donation Template is selected in the Template section within the current page's settings on the right side of your screen.
  • Enable WP custom fields on this page, with the following key value pair:
    • donation:amount
    • donation:description - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    • donation:email
    • donation:first_name
    • donation:last_name
    • donation:payment_method - paypal
    • donation:phone
    • donation:target - 4000000
    • donation:title - Lorem Ipsum
    • donation:total - 413078
  • Set the page you created above as your Front Page.

Assets Used

assets/icon-square-dots.svg
assets/swish-bg.png
assets/symbol-L.svg
assets/istock.jpg

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

This is a short mini project.


Languages

Language:PHP 75.7%Language:Vue 13.2%Language:CSS 7.5%Language:SCSS 2.6%Language:JavaScript 1.1%