-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Blocks: Contextual tips tied to specific search queries #20196
Comments
I like this. A good start would be to compile a list of possible tips, then we can decide if they show only when searching or if they become part of the rotating set. |
We've also got a list of block-specific tips that we've yet to incorporate into the build. Related: #16595 |
Nice. Worth connecting this to #19836 which updates the way the tip is displayed. That said, I like that the tip replaces the "no results" label — it seems more obvious and helpful. |
Here are the first few that I outlined above:
If anyone else has additional ideas, please share them. |
This PR is merged to WordPress.com and should also be copied over to wp.org and Gutenberg. |
Problem
Folks who are new to WordPress and Gutenberg start off with a very rudimentary mental model of how WordPress works. Once they are in Gutenberg, it's easy to see how they might assume that all customization of their site can be done within the editor. When people search for terms like:
Not only do we show zero results, but we currently do nothing to point them in the right direction.
Proposed Solution
Let's use the tips system (which already exists in the inserter and can be made searchable) to contextually suggest alternative sections of WordPress when specific keywords are entered into the block inserter.
Preview
Here's a preview of what that might look like:
Proposed keyword/copy
You can visit the <a href="/customize.php?autofocus[section]=custom_css" target="_blank">the Customizer</a> to edit the CSS on your site.
You can visit the <a href="/themes.php" target="_blank">theme directory</a> to select a different design for your site.
You can visit the <a href="/plugin-install.php" target="_blank">plugin directory</a> to install additional plugins.
You can visit the <a href="/customize.php?autofocus[section]=title_tagline" target="_blank">the Customizer</a> to edit your logo and site title.
You can visit the <a href="/customize.php?autofocus[section]=colors" target="_blank">the Customizer</a> to edit the colors on your site.
Alternatives Considered
1) Using tips in their current location
I started off by attempting to use tips within their current location, but it felt off. The white space feels a tad excessive.
The next thing I tried was simply replacing the "No blocks found." text with the tip. I believe this text provides valuable context though, so I moved the tip to the bottom (as seen in the proposed solution above)
The text was updated successfully, but these errors were encountered: