Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

general uptates #154

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

general uptates #154

wants to merge 6 commits into from

Conversation

lcnogueira
Copy link
Contributor

@lcnogueira lcnogueira commented Jan 27, 2024

A few updates of things I realized while I was going through the trainning.

@lcnogueira lcnogueira self-assigned this Jan 27, 2024
Copy link

vercel bot commented Jan 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
10up-gutenberg-best-practices ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2024 8:36pm

training/01-overview.md Outdated Show resolved Hide resolved
@lcnogueira lcnogueira changed the title [WIP] General uptates [WIP] general uptates Jan 27, 2024
@@ -65,20 +65,20 @@ It takes a village (of files) to build a block. Luckily, our 10up scaffold has e

The various pieces of this starter block are:

- [**block.json**](https://github.com/10up/wp-scaffold/blob/trunk/themes/tenup-theme/includes/blocks/example-block/block.json) — This is where all of the configurations for our block happen. The block's name, icon, keywords and everything else is handled here. Most importantly, the block's attributes are listed here. We will cover attributes more in the next section.
- [**edit.js**](https://github.com/10up/wp-scaffold/blob/trunk/themes/tenup-theme/includes/blocks/example-block/edit.js) — This file controls how the block looks and behaves in the editor. This is where you use interactive elements to manage your block's attributes. Imagine that you want to add a title to your block. In `edit.js`, you will import the `RichText` component, style it to look like it does on the frontend, and listen for changes. Any time the block changes, the data gets saved in the database! Markup in this file is written in JSX like standard React components.
- [**index.css**](https://github.com/10up/wp-scaffold/blob/trunk/themes/tenup-theme/includes/blocks/example-block/index.css) — Sometimes you want your block to look slightly different in the editor than on the frontend. You can add styles to affect only the editor appearance here.
Copy link
Contributor Author

@lcnogueira lcnogueira Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file doesn't exist in that folder anymore, so I just removed the link.

@lcnogueira lcnogueira changed the title [WIP] general uptates general uptates Feb 2, 2024
@lcnogueira lcnogueira marked this pull request as ready for review February 2, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant