Skip to content

general uptates#154

Open
lcnogueira wants to merge 6 commits intomainfrom
10up/updates
Open

general uptates#154
lcnogueira wants to merge 6 commits intomainfrom
10up/updates

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
@vercel
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

@lcnogueira lcnogueira changed the title [WIP] General uptates [WIP] general uptates Jan 27, 2024

- [**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.

1 participant