Skip to content
้กน็›ฎ

ๅ…ณไบŽ

๐ŸŽจ ้ซ˜็บง WordPress ไธป้ข˜

็ฝ‘็ซ™ไธŽๅบ”็”จๅผ€ๅ‘

่ฟ™ไบ›ๆ•ฐๅญ—ๅฆ‚ไฝ•็ปŸ่ฎก

ๅฏไปฅๅšไป€ไนˆ

  • Custom front page.
  • Custom Blog page with posts displayed in grid format using bootstrap.
  • Block Style Variations
  • Custom Gutenberg Blocks

ๅฎžๆต‹ๆ˜Ÿๆ ‡ๅขž้•ฟ

24ๅฐๆ—ถ
0
7ๅคฉ
0
15ๅคฉ
-1
1ไธชๆœˆ
-1

ๅ„ๅ‘จๆœŸๅ†…็š„ๆ˜Ÿๆ ‡ๅ‡€ๅ˜ๅŒ–๏ผŒๅ‘จๆœŸ็›ธไบ’้‡ๅ ๏ผŒๅนถ้žๆฏๆ—ฅๆ–ฐๅขžใ€‚็ผบๅคฑ็š„ๆต‹้‡ไฟๆŒ็ฉบ็™ฝใ€‚ๆ˜Ÿๆ ‡ไปฃ่กจๅ…ณๆณจๅบฆ๏ผŒไธไปฃ่กจ่ฝฏไปถ่ดจ้‡ใ€‚

README.md

ๅŽŸๆ–‡

WordPress Theme - Aquila ๐ŸŽจ

Project Status: Active. code style: prettier

  • A WordPress theme Project for Advanced WordPress Theme Development Course. This theme uses Bootstrap. Learn to build an Advanced WordPress Theme from scratch
WordPress theme development banner

Tutorial Course

Also See - Advanced WordPress Plugin Development

Features:

  • Custom front page.

  • Custom Blog page with posts displayed in grid format using bootstrap.

  • Block Style Variations

  • Custom Gutenberg Blocks

  • InnerBlocks

Maintainer

Name Github Username
Imran Sayed @imranhsayed

Usage

  1. Clone the WordPress theme aquila in your WordPress themes directory and activate it.

Dashboard Setup.

  1. Create pages called 'Home' and 'Blog' and set them from Appearance > Customizer > Homepage Settings like so:

Development ( To be added )

Install

Clone the repo and run

cd aquila/assets
npm install

During development

npm run dev

Run precommit from assets directory before pushing the code for development/contribution.

cd assets && npm run precommit

Production

npm run prod

Linting & Formatting

The following command will fix most errors and show and remaining ones which cannot be fixed automatically.

npm run lint:fix

We follow the stylelint configuration used in WordPress Gutenberg, run the following command to lint and fix styles.

npm run stylelint:fix

Format code with prettier ( TO BE ADDED )

npm run format-js

Directory Structure

.
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ assets
โ”‚   โ”œโ”€โ”€ main.js
โ”‚   โ””โ”€โ”€ src
โ”‚       โ””โ”€โ”€ library
โ”‚           โ”œโ”€โ”€ css
โ”‚           โ”‚   โ”œโ”€โ”€ bootstrap-grid.min.css
โ”‚           โ”‚   โ””โ”€โ”€ bootstrap.min.css
โ”‚           โ””โ”€โ”€ js
โ”‚               โ””โ”€โ”€ bootstrap.min.js
โ”œโ”€โ”€ demo
โ”‚   โ”œโ”€โ”€ banner.png
โ”‚   โ”œโ”€โ”€ blog-page.png
โ”‚   โ”œโ”€โ”€ features-one.png
โ”‚   โ”œโ”€โ”€ features-two.png
โ”‚   โ””โ”€โ”€ home-page-customizer-setup.png
โ”œโ”€โ”€ footer.php
โ”œโ”€โ”€ front-page.php ( Home Page )
โ”œโ”€โ”€ functions.php
โ”œโ”€โ”€ header.php
โ”œโ”€โ”€ inc
โ”‚   โ”œโ”€โ”€ classes
โ”‚   โ”‚   โ”œโ”€โ”€ class-aquila-theme.php
โ”‚   โ”‚   โ”œโ”€โ”€ class-assets.php
โ”‚   โ”‚   โ”œโ”€โ”€ class-menus.php
โ”‚   โ”‚   โ””โ”€โ”€ class-meta-boxes.php
โ”‚   โ”œโ”€โ”€ helpers
โ”‚   โ”‚   โ”œโ”€โ”€ autoloader.php
โ”‚   โ”‚   โ””โ”€โ”€ template-tags.php
โ”‚   โ””โ”€โ”€ traits
โ”‚       โ””โ”€โ”€ trait-singleton.php
โ”œโ”€โ”€ index.php ( Blog page )
โ”œโ”€โ”€ page.php  ( Single Page )
โ”œโ”€โ”€ screenshot.png
โ”œโ”€โ”€ single.php ( Single Post Page )
โ”œโ”€โ”€ style.css
โ””โ”€โ”€ template-parts
    โ”œโ”€โ”€ components
    โ”‚   โ””โ”€โ”€ blog
    โ”‚       โ”œโ”€โ”€ entry-content.php
    โ”‚       โ”œโ”€โ”€ entry-footer.php
    โ”‚       โ”œโ”€โ”€ entry-header.php
    โ”‚       โ””โ”€โ”€ entry-meta.php
    โ”œโ”€โ”€ content-none.php
    โ”œโ”€โ”€ content.php
    โ””โ”€โ”€ header
        โ””โ”€โ”€ nav.php

Fixing Errors

  1. Error: Node Sass does not yet support your current environment Solution :
cd assets
npm rebuild node-sass

ๆŽข็ดข็›ธๅ…ณ้กน็›ฎ

ๅŠ ่ฝฝไธญโ€ฆ