Дмитрий Шутько
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Documentation for THEME_NAME ## Introduction 1. Wordpress Theme for [THEME_NAME](https://THEME_NAME) is based on the Gutenberg block editor 2. Tested and working on PHP [8.0]-[8.2.8] 3. Required plugins: * **Advanced Custom Fields PRO** * **Advanced Custom Fields: SVG Icon** * **WP-SCSS** (or another solution for compiling scss to css) * **Git Updater** (for deployment) ### Folder structure ``` themes/THEME_NAME/ # → Root of theme ├── acf-json/ # → ACF Fields ├── blocks/ # → All Gutenberg Blocks | ├── blockname/ # → Gutenberg Block Forder | | ├── block-image # → Block screensot | | ├── block-render # → Block template file | | ├── block.json # → Block configuration | ... ├── css/ # → Theme stylesheets ├── fonts/ # → Theme fonts ├── images/ # → Theme images | ├── icons.svg # → Icons sprite file ├── inc/ # → Theme Functions ├── js/ # → Theme javascript ├── languages/ # → Theme language files ├── page-templates/ # → Theme pages templates ├── scss/ # → Theme scss files ├── template-parts/ # → Theme template parts ``` ## Installation **Step 1: Download the Theme** **Step 2: Upload the Theme** 1. Click the "Add New" button at the top of the Themes page. 2. Next, click the "Upload Theme" button. 3. Choose the theme ZIP file you downloaded from our website and click "Install Now." **Step 3: Activate the Theme** 1. Once the installation is complete, click the "Activate" button to make **THEME_NAME** your active theme. ## Configuration 1. Go to **Theme Settings** and fill in all the necessary fields 2. Go to **Apperance -> Menus** create or edit menu items ## Features and Functionality Building websites with THEME_NAME is made easy and flexible with the power of Gutenberg blocks. Whether you're a beginner or an experienced developer, our solution offers a seamless way to create stunning and functional web pages. This guide will walk you through the core functionality of our Gutenberg-based website builder. **Block Library:** Our block library includes a diverse range of blocks to cater to your website's needs. Here are some key features: - **Block Categories:** Blocks are organized into intuitive categories for easy selection. - **Custom Blocks:** We've crafted custom blocks to enhance your design and functionality. - **Third-Party Blocks:** Seamlessly integrate third-party blocks from popular plugins. - **Block Preview:** Preview blocks in real-time to see how they will appear on your site. **Block Customization:** With our Gutenberg-based solution, you can customize blocks to match your unique vision: - **Block Settings:** Adjust block settings, such as colors, fonts, and spacing. - **Advanced Options:** Dive into advanced options for fine-tuning block behavior. - **Block Reusability:** Save customized blocks for future use on other pages. **Layout Building:** Our intuitive layout builder empowers you to create dynamic web pages effortlessly: - **Drag-and-Drop:** Easily arrange and rearrange blocks with a simple drag-and-drop interface. - **Grids and Columns:** Create responsive layouts with grid and column blocks. - **Full-Page Editing:** Edit your entire page within the Gutenberg editor, reducing the need to switch between screens. **Content Integration:** Integrate various content types seamlessly: - **Media Integration:** Embed images, videos, and audio directly into your content. - **Dynamic Content:** Fetch and display dynamic content from posts, pages, and custom post types. - **Widget Integration:** Place widgets anywhere on your page using widget blocks. **Responsive Design:** Our Gutenberg-based solution ensures that your website looks great on all devices: - **Mobile Editing:** Fine-tune the mobile view of your site within the editor. - **Responsive Blocks:** Most blocks adapt to different screen sizes automatically. **Collaboration and Publishing:** Collaborate with your team and easily publish your content: - **User Roles:** Assign roles to team members with varying levels of access. - **Drafts and Revisions:** Save drafts and review revisions before publishing. - **One-Click Publishing:** Publish your changes with a single click. ## Deploying **Introduction:** Deploying your theme with Git Updater is a streamlined process that ensures your WordPress site is always up-to-date with the latest version of your theme, straight from your Git repository. This guide will walk you through the steps to set up Git Updater for seamless theme deployment. **Step 1: Installation and Activation** Install and activate the Git Updater plugin from the WordPress plugin repository. **Step 2: Configure Git Updater** In your WordPress admin dashboard, navigate to "Settings" > "Git Updater." Add your access token key in the "GitHub/GitHub.com Access Token" and "THEME_NAME" field. Click the "Save Changes" button to save your settings. **Step 3: Deploy Your Theme** Click on **"Refresh cache"** to reset the cache and get the latest version of the theme from GitHub. After configuring Git Updater, navigate to "Appearance" > "Themes" in your WordPress dashboard. You should now see your theme listed with a "New Version Available" notification. Click the **"Update Now"** button to deploy the latest version of your theme. **Conclusion:** Deploying your theme using Git Updater simplifies the update process, ensuring that your WordPress site is running the latest version of your theme effortlessly. With automatic updates enabled, you can focus on creating and customizing your site, knowing that your theme will always be up-to-date. ## Coding Standards ### SCSS Use scss variables whenever possible. To apply adaptivity we use the following structure ```css .class { <!-- common style --> @include tablet { <!-- style for tablet --> } @include mobile { <!-- style for mobile devices --> } } ``` ### JavaScript When crafting JavaScript, do not assume jQuery. Try not to use jQuery if at all possible. It is preferred not to use node import libraries, because of the way our legacy codebase was created, how our caching works, and how our postprocessors are implemented. Optimize performance by ensuring that your javascript works after the content is loaded. Try to minimize browser re-painting. Brackets should open and close on a new line at similar indent levels, to make it easy to spot when they open and close. Functions should be small, single purpose, and reusable. If you have to specify more than a few When crafting functions, don’t specify their triggers internally. When crafting triggers, don’t specify their functions internally. ```js window.populateFormUrl = function(){ //do something }; document.addEventListener( 'DOMContentLoaded', () =>{ populateFormUrl(); }; ``` ### PHP & HTML To leave HTML comments, use `<?php /* Comment */ ?>` Don’t leave HTML `<!-- Comments -->` in your code. These are not stripped out by postprocessors and they will be visible in search engines. ## Development Workflow: Local, Staging, and Production **Step 1: Local Development** 1. **Environment Setup:** * Set up a local development environment on your computer using tools like [localwp](https://localwp.com/), XAMPP, WAMP, or Docker. * Install WordPress locally and configure it to match your production environment. 2. Theme Development: * Customize your WordPress theme and plugins locally. * Use version control systems (e.g., Git) to manage your code changes. * Change theme version in `style.css` file 3. Testing and Debugging: * Thoroughly test your code for functionality and compatibility. * Use debugging tools and error logs to identify and fix issues. **Step 2: Staging Environment** https://THEME_NAME.staging.url/ - staing Environment 1. Deployment to Staging: * Deploy your theme version to staging using **Git Updater**, fill in all the data 2. Testing and Quality Assurance: * Conduct extensive testing on the staging site to simulate the production environment. * Test for performance, security, and cross-browser compatibility. * Involve stakeholders and team members in the testing process. 3. Feedback and Revisions: * Collect feedback from stakeholders and make necessary revisions. * Refine the code, design, and functionality based on feedback. **Step 3: Production Deployment** 1. Deployment to Production: * Deploy your theme version to production using **Git Updater**, fill in all the data * Clear **WpRocket** cache **Conclusion:** A well-structured development workflow, including local development, staging, and production stages, ensures that your WordPress project is built, tested, and deployed systematically and reliably. Following this workflow helps minimize errors, enhances collaboration among team members, and ultimately results in a stable and secure production website.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully