Digital Sovereignty for everyone

Search page link icon

Since 1.2.0 a link to the search page prints its own search icon as inline SVG (svg.lh-search-page-icon, aria-hidden, focusable="false", fill="currentColor") before its label. The icon is the Genericons Neue search icon (GPL v2 or later), the same one LH 2015 drew in CSS until 2.35.33.

  • Which links: a navigation link block or classic menu item whose address is the search page (same host, or a relative link, and the path /search/, ignoring the query string and fragment), or a navigation link with the lh_search_page-link class. No menu change is needed for existing links.
  • Classes: the link’s item gets has-inline-icon and lh_search_page-link. A theme that draws menu icons in CSS should skip items with has-inline-icon, as LH 2015 does, and place the SVG where its CSS icon would be.
  • Styles: a one-line inline stylesheet (lh-search-page-icon) spaces the icon from a visible label. It loads only on pages that print the icon.
  • Editor: the navigation block gets a Search Page link variation (label Search, the search page address, class lh_search_page-link). The editor renders navigation links itself, so there the icon is drawn with a CSS mask on any link to the search page.
  • Filter: lh_search_page_return_icon returns array( 'viewbox' => ..., 'path' => ... ). Change the path to use another icon, or return an empty path to print none.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.