WordPress / Documentation-Issue-Tracker

Issue Tracker for the WordPress Documentation team.
https://make.wordpress.org/docs/
Other
83 stars 41 forks source link

[Mobile App] [screenshots] [content] Search block #1601

Open estelaris opened 5 months ago

estelaris commented 5 months ago

The content needs to be written for for both iOS and Android

github-actions[bot] commented 5 months ago

Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.

vicheva commented 1 month ago

Started working on this for iOS

vicheva commented 1 month ago

Adding a Search Block to a Post on the WordPress iOS App

This guide will walk you through how to add a search box to your WordPress site using the iOS app. Whether you’re new to WordPress or have some experience, this step-by-step guide will help you easily place a search box on any post or page, so visitors can quickly find the content they need.

What You’ll Learn

How Search Works

The Search block lets your visitors search for specific content on your site. It searches the titles and body text of posts and pages, as well as media like image captions and alt text. However, it doesn’t search in widgets, comments, or tags.

Search results will show in reverse chronological order, based on when the post was published. If a search term is found in a post title, that post will appear first, followed by posts where the search term is found in the body text.

For examples, let’s say you have a recent post titled “Summer Vacation Tips” and an older post titled “Best Beaches in California.” If someone searches for “California” the older post titled “Best Beaches in California” will appear first in the search results, because the search term is in the title. Any other posts containing “California” in the body will show up after, sorted by when they were published.

Adding the Search Block

1.  Open the WordPress app on your iPhone or iPad and edit the post or page where you want the search box.
2.  Tap the + icon in the bottom toolbar to open the block inserter.

IMG_5810

  1. Type “search” in the search bar at the top. IMG_5811
  2. Select Search from the list of blocks. IMG_5812
  3. The Search block will now appear in your post. IMG_5813

Changing the Search Box Placeholder Text

Placeholder text is the text inside the search box before someone starts typing. It could say something like “Search here…” and disappears once the user clicks inside the box to type.

To change the placeholder text:

  1. Tap on the Search block.
  2. Click into the search box field and type the new placeholder text you’d like visitors to see. IMG_5815

Using the Search Block Toolbar

When you select the Search block a toolbar will appear above it. This toolbar lets you customize how the search box looks and works. Here’s what you can do from the toolbar:

Customizing Display Settings

You can customize how the Search block looks on your site:

By following these steps, you can easily add a functional and customizable search box to any post or page on your WordPress site using the iOS app. This will help your visitors find the content they’re looking for, improving their experience on your site.