Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Block Patterns - FAQ #119

Closed
Tracked by #8
juanfra opened this issue Aug 28, 2023 · 4 comments · Fixed by #158
Closed
Tracked by #8

Block Patterns - FAQ #119

juanfra opened this issue Aug 28, 2023 · 4 comments · Fixed by #158

Comments

@juanfra
Copy link
Member

juanfra commented Aug 28, 2023

Description

🛠️ The goal of this issue is to track the implementation of the "FAQ" pattern.
🎨 Figma

FAQs

@juanfra juanfra mentioned this issue Aug 28, 2023
22 tasks
@juanfra juanfra changed the title FAQ Aug 28, 2023
@esrat71
Copy link
Contributor

esrat71 commented Aug 30, 2023

Here's I have a query on mind. I can create pattern with default gutenberg blocks , and love to contribute in this . How can i do this pattern and submit ? any procedure to follow? Have already installed the basic setup on my pc.

@carolinan
Copy link
Contributor

To add a new pattern, you must create a new PHP file and save it in the patterns folder.
To add the style to the list block, you will also need to register a custom block style. https://developer.wordpress.org/themes/advanced-topics/custom-block-styles/

Clone the GitHub repository.
Add a new branch.
Upload the pattern to your branch.
Create a pull request to add your branch with the new file to this repository.


The fastest way to create a new pattern is to copy an existing pattern and replace parts of it.

For example, if you copy about.php, you need to:

  • Rename the PHP file to something that makes sense like faq.php
  • Add the correct title, slug, and category
  • Replace the code below the file header with your blocks.

But to learn how to build patterns, you should create them from scratch :)
Documentation about creating patterns

@esrat71
Copy link
Contributor

esrat71 commented Aug 31, 2023

@carolinan Thank you for your explanation. I have already created the pattern . and uploaded pattern to my branch. Here i am stuck in pull request . Can you guide me ?

@carolinan
Copy link
Contributor

It looks like you already added the pull request correctly.

@juanfra juanfra linked a pull request Aug 31, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.