tailpress
v3.4.0
Published
Boilerplate WordPress theme with Tailwind CSS.
Downloads
1
Readme
Installation
- Install the wordpress in LocalWP by downloading this blue print and copy it to
~/Library/Application Support/Local/blueprints(mac) or%AppData%/Roaming/Local/blueprints(window). Then, setup the new wordpress website using blueprint. These plugins are included.- Advanced Custom Fields PRO - Licensed
- Advanced Editor Tools
- Search & Filter Pro
- Rank Math SEO with AI Best SEO Tools
- SVG Support
- Wordfence Security
- WP All Import - ACF Add-On
- WP All Import Pro
- WP Mail SMTP
- WP Migrate - Licensed
- WP Rocket
- WPForms - Licensed
- WPForms Multilingual
- WPML Multilingual CMS
- WPML String Translation
- Yoast Duplicate Post
Development
- Fork this Git (use the fork icon under gitlab and create new project).
- Clone the Git.
- Start the website in LocalWP
- Copy
env.sampleto.envand replaceWP_URL - Run
npm install - Run
npm watch
Get updates from the wordpress-tailwind-base-theme
- Follow this guide from Gitlab to get update from the fork
Fix the syntax highlighting in css
- Place the below code into .vscode/settings.json
{
"files.associations": {
"*.css": "tailwindcss"
}
}Resusable
Libraries
- SwiperJS for the slider function.
- [email protected] for the reactivity and reusable javascript state & components.
- AlpineJS [email protected] - morphdom plugin to morph the genereated dom from php, use it in listing pages and other pages.
- TailwindCSS
PHP
resources/php/generate-breadcrumb.phpto generate the breadcrumbs, it will cover most of the cases.resources/php/disable-wpform-confirmation.phpto disable WPForm confirmation page replacing the form in AJAX.resources/php/share-links.phpto get share link for social media platforms.resources/php/get-reading-time.phpto get the reading time of the content.resources/php/update-dashboard-logo.phpto update the backend login page's logo.
Javascript
resources/js/directives/header-base.jsregister the new directivex-headerand add--header-heightcss variable to body style and globalheaderstate.
Development
Guideline
- [x] All fonts need to use
fluid font styleto ensure the responsive. - [x] All containers need to calculate using maximum and padding calcuation flow.
- [x] All styles need to import under app.css in order to work.
- [x] All common styles must be placed in common.css.
- [x] All common script must be placed in common.js.
- [x] All component related css and javascript must be same with component name, for example, if you're writing for header-base.php block, then it should be header-base.js or header-base.css
- [x] All Alpine JS directives must be imported in directives.js to work.
- [x] All JS except Alpine JS must be imported in app.js to work.
- [x] All vector images should be used .svg extension such as Logo
Checklist
- [ ] Update the favicon (ask from designer).
- [ ] Confirm the WPML - language slug with client through PM (Malaysia).
- [ ] Ready all content before two weeks of deadline by client through PM (Malaysia) including multi language.
- [ ] SEO Meta Title, Description mush be ready before two weeks of deadline.
Deployment
These steps only need to do in first time deployment
- Setup the wordpress default in the server and configure the database.
- Install WP Migrate with license key and allow push from it
- Push it directly from the most updated LocalWP setup. Please select like below.
- [x] Database and keep as default
- [x] Media Folder
- [ ] Theme (Don't select it, as we will git pull from the server)
- [x] Plugins
- After that, please go to
<WODPRESS_DIRECTORY>/wp-content/themesand git pull your projects - Build the CSS and Javascript in your computer and upload to
<WODPRESS_DIRECTORY>/wp-content/themes/<THEME>
Follow these steps for continous updates and deployment
- Git pull from
<WODPRESS_DIRECTORY>/wp-content/themes/<THEME> - Build the CSS and Javascript in your computer and upload to
<WODPRESS_DIRECTORY>/wp-content/themes/<THEME>
Live Checklist
- [ ] All payments must be linked with client accounts. This is the most important step.
- [ ] Under
Settings > Readingand uncheckDiscourage search engines from indexing this site - [ ] Enable Rank MATH SEO.
- [ ] Update the theme name to be client website name.
- [ ] Update the theme folder client to be client name and reactivate it Dashboard.
- [ ] Replace the screenshot with client logo.
- [ ] Enable
WP Rocketif there is optimization in Project Quotation. - [ ] Disable WP Cron Job and enable CPANEL Cron JOB to optimize the website. See this link.
- [ ] Enable
Wordfenceand configure it. - [ ] Update the backend login url to be
letadminin. Can useWPS Hide Login. - [ ] Update the backend login logo to client logo. Use
resources/php/update-dashboard-logo.phpand change thebackground-image. - [ ] Configure SMTP to use client email with
WP Mail SMTP# wp-tw-sections
