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.
- Enable the use of Vuejs Components.
- Have the capability of using npm packages to your Wordpress application.
- 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.
There are 2 ways to install this theme into your Wordpress application.
$ cd <your-wordpress-dir>/wp-content/themes
$ git clone git@github.com:bugsworld85/project-blank-canvas.git blank-canvas
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
- create a page with WP native blocks in this structure:
Note on the above structure: The lines right after
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
#
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
- paypaldonation:phone
donation:target
- 4000000donation:title
- Lorem Ipsumdonation:total
- 413078
- Set the page you created above as your Front Page.
assets/icon-square-dots.svg
assets/swish-bg.png
assets/symbol-L.svg
assets/istock.jpg
The Laravel framework is open-sourced software licensed under the MIT license.