Posts tagged manage-display

Adding a Custom System Alert to Your Results Page

Search.gov Home > Admin Center > YourSite > Display > Search Page Alert

There may be times when you want to add a system alert to your search results page. For instance, during a site redesign, you may wish to inform searchers that your site is in transition.

Use the Search Page Alert feature to add a text message to your search results page, which will appear at all times above all search results, regardless of the query. Enter a title and text for the alert, set the status to active, and hit Save to turn on your alert. The appearance of the alert is not customizable.

See, for example, the custom alert on Defense.gov announcing their migration to a new system.

Custom System Alert on Defense.gov


Did you know? See also our closely related feature Best Bets, which allows you to recommend individual results or sets of results, which will appear only when a searcher’s query matches the text of their titles, descriptions, or keywords.

How to Select the Options that Appear on Your Results Page

Search.gov Home > Admin Center > YourSite > Manage Display > Display Overview

Facets

Label. By default, we use the label ‘Search’ for your facets. Enter a label in the label field if you’d like something other than this default. Keep your label consistent with the options you’re listing and under 15 characters.

See the sample results page below that shows the facets with the default label, Search, displayed for a search on passport on USA.gov. (It is most easily seen by clicking on the menu option from a mobile phone.)

On/off options for facets. Select which facets you’d like to appear on your results page. Turn an option on to allow searchers to see it. Turn an option on or off at any time.

Type over the text in the Name field to edit a facet’s display name. Keep each name short (15 or fewer characters) and consistent with the content you’re searching. Click on the hyperlink in the Source field to update the facet’s source content. Hover over the icon with three horizontal lines on the left to change the order.

More. We show up to four facets above your search box. If you turn on the display of more than four facets, you’ll see them listed under a ‘More’ dropdown menu. Email us at search@support.digitalgov.gov if you’d like to use a custom label instead of the default ‘More’.

Modules

On/off options for modules. Turn on a module to allow searchers to see inline, contextually relevant results for selected content sources based on keyword matches with relevant queries. There are eight types of modules.

  1. News. This option only appears after you’ve told us about your RSS feeds. When a searcher’s query matches the title of an RSS article published within the past four months, the article appears in the News module. Very recent news results (less than five days) appear at the top of the page and less recent news results appear at the bottom. Up to three articles are displayed. Type over the default name, News, in the Name field to edit the display name.

  2. Videos. This option only appears after you’ve told us about your YouTube channel. When a searcher’s query matches the metadata of a video published within the 13 months, the video appears in the Videos module. One inline video is displayed with a link to see more videos for the searcher’s query.

  3. Job openings. When a searcher’s query matches the text of a job opening published by your agency on USAJobs, the job appears in the Job Openings module. Up to three job openings are displayed. For more information, including a screenshot, read our post Help Searchers Find Jobs. You will need to contact us to get the Jobs module enabled for your site.

  4. Federal Register documents. When a searcher’s query matches the text of a notice or rule published by your agency in the Federal Register, the document appears in the Federal Register module. Up to three documents are displayed. For more information, including a screenshot, read our post Help Searchers Find Federal Register Documents.

  5. Related searches. Help visitors better define the focus of their search by offering them searches related to their current search term. Suggestions are derived from the searches performed on your website. Up to five searches related to your visitors’ original search are displayed and are updated in near real time.

  6. Health topics. Help searchers find high-quality, authoritative health information from MedlinePlus and ClinicalTrials.gov. For more information, including a screenshot, read our post Help Searchers Find Health Information.

  7. Recent tweets. This option only appears after you’ve told us about your Twitter account. When a searcher’s query matches the text of a tweet published within the past three days, the tweet appears in the Recent Tweets module.

  8. Type-ahead search. Help searchers refine their query by displaying type-ahead search suggestions as a list in the search box. The list forms as a searcher begins to type in the search box. Suggestions are listed in order of most popular (that is, most searched). They’re updated every few seconds. See, for example, the suggestions as you type di… on SocialSecurity.gov’s search results page. Note: this will enable type-ahead on your search results page that is hosted by our service. If you wish to display type-ahead suggestions on your agency’s website, please review instructions for our JavaScript snippet and API.

Help visitors find content relevant to their search query that resides on other websites, such as the site for your parent organization or your Spanish-language site. When searchers click on the link to the related site, they see search results for their query on the related site.

Enter the site handle for one of your other Search.gov sites. Enter the text you’d like searchers to see for the link to the related site. Create two entries, one from the first site to the second and vice versa, if you’d like a reciprocal link.

See, for example, the Español option displayed on USA.gov for a search on venezuela. When searchers click this option, they see results for venezuela on GobiernoUSA.gov.

If you list more than two related sites, searchers will see them listed under a dropdown menu, View Topic.

Email us at search@support.digitalgov.gov if you’d like to use a custom label instead of the default ‘View Topic’ label.


Did you know? Searchers may narrow results by time period for any RSS feeds. See, for example, results for a search on space narrowed to press releases in the last week on NASA.gov.

Did you know? For any of your RSS feeds that you’ve extended with a contributor, publisher, or subject Dublin Core (External link) property, searchers may narrow results by the three facets. We’ll display “Contributor,” “Publisher,” and “Subject” as the default names. Email us at search@support.digitalgov.gov to if you want to customize these display names.

Tips to Make the Most of the Newly Redesigned Results Page

As you customize the newly redesigned results page to match your site’s brand, we thought it’d be good to highlight some of our favorite tips.

Display Overview

Search.gov Home > Admin Center > YourSite > Manage Display > Display Overview

Shorter display names look best for the faceted search and related sites. Try to keep names under 15 characters.

  • USA.gov has multiple faceted topics, and a related site for Spanish.

Fonts & Colors

Search.gov Home > Admin Center > YourSite > Manage Display > Fonts & Colors

Use a background color on the header, page body, or both. For best results, use different colors for the header and body.

  • Your background doesn’t have to be a strong color. A light gray can provide subtle definition as seen on NIH.gov.
  • A good, strong color for the search button can go a long way, as seen Kids.gov.
  • Especially buttons with a contrasting accent color like on TreasuryDirect.

Image Assets

Search.gov Home > Admin Center > YourSite > Manage Display > Image Assets

A logo that has both the seal and agency name can provide a stronger identity than a seal only or a name only.

The addition of a name can also give the same seal two very different identities.

Align your logo so its alignment is consistent with your website.

  • NIH.gov has a left-aligned logo on both of its pages.

Search.gov Home > Admin Center > YourSite > Manage Display > Header & Footer

Use the footer to add navigation and required links.

  • The Department of Justice is using this option.
  • It’s also possible to add an email address to the footer or header by using mailto:info@agency.gov within the URL as USPTO.gov has done for its option to email the USPTO Webmaster.

How to Brand Your Results Page

Search.gov Home > Admin Center > YourSite > Manage Display

To customize your search results page and match your site’s brand:

  1. Define your color scheme on the Fonts & Colors page.
  2. Upload your logo on the Image Assets page. (We’ll also link your logo to your homepage using the homepage URL you provide on the Settings page.)
  3. Add your navigation links on the Header & Footer page.

Read our favorite tips to see how other sites have customized their results pages and for some ideas on how to optimize the newly redesigned results page for your site.

Font & Colors

Font Family. Leave the default font as-is, or select your preferred font family.

Color Scheme. Leave the default color scheme as-is, or select Custom to create a customized scheme. Customize the color of any page element by clicking on it and entering a valid three- or six-digit hex value. You can also pick a color by dragging your mouse inside the color picker window.

Image Assets

Favicon. Provide the URL for your agency’s favicon. (A favicon (External link), short for favorites icon, is the small image associated with your website.)

Logo. Use the Choose File option to upload the logo that you’d like to appear in the header of your results page. Click on the option, Mark Logo for Deletion, to delete an uploaded logo. There isn’t a required dimension. That said, images less than 550 pixels wide and 100 pixels high tend to work best.

If you don’t upload a logo, searchers will simply see the header, Your Site Name. We’ll use the site name you provide on the Settings page.

Logo Alignment. Leave the logo center-aligned, or select Left to make it left-aligned or Right to make it right-aligned. (Right-aligned logos are typically used on sites with right-to-left languages like Arabic, Hebrew, and Urdu.)

Logo Alt Text. Add alt text for your logo. If you don’t add custom alt text, we’ll use the site name you provide on the Settings page as the default alt text.

Tagline. Fill out text for a “tagline” if you’d like one to appear at the very top of your results page header.

The default tagline style uses Georgia (font family), 1.3 em (size), and italic (style). Email us at search@support.digitalgov.gov if you’d like to change the default font family, size, or style.

Menu Button Alignment. Leave the Browse Site “hamburger” menu right-aligned, or select the Left option to make it left-aligned.

Header and Footer Links. Fill out the titles and URLs for the navigation links you’d like to appear in your header and footer. You can add an email address by specifying mailto: within the URL field, such as:

Title: Contact us
URL: mailto:info@agency.gov

Use the icon with three horizontal lines on the left to change the order.


Did you know? As you change each font and color option, the mini search results page in the upper right-hand corner will update to reflect your changes. Once you click save, the changes will appear on your live site.

Did you know? Our search results page uses a responsive design (External link) to ensure it is optimized for searchers anywhere, anytime, and on any device.

Did you know? We offer results through our Search Results API, if you’d like to create mash-ups or have complete control of the look and feel of your search results pages. You can access our Search Results API Instructions by clicking on the Activate Search option in the left-hand menu in the Admin Center.

How to Customize the No Results Page

Search.gov Home > Admin Center > YourSite > Display > No Results Page

Standard Response

Our standard No Results response is Sorry, no results found for ‘QueryTerms’. Try entering fewer or broader query terms. This response will display whenever there are no results for a query.

Additional Guidance Text

You can add text to guide searchers to additional resources. If you leave this field blank, the Alternative Links will display immediately after the standard response.

You can add links to alternative resources that may assist the searcher in answering their query. See, for instance, this search on USA.gov for “avinaweoinasdv”.


Did you know? You can see a list of Queries with No Results in Today’s Snapshot on the Dashboard, and in the Admin Center > YourSite > Analytics > Monthly Reports.