Copy-paste a theme-editor section for utility - A helpful 404 - search box plus popular links instead of a dead 'page not found'.
That page moved or never existed
1<div class="gpl-404">2 <h2 class="gpl-404__heading">{{ section.settings.heading }}</h2>3 <form action="{{ routes.search_url }}" method="get" class="gpl-404__form" role="search">4 <input type="search" name="q" placeholder="Search the store…">5 <button type="submit">Search</button>6 </form>7 <div class="gpl-404__links">8 {%- assign rows = section.settings.links | newline_to_br | split: '<br />' -%}9 {%- for row in rows -%}10 {%- assign parts = row | strip | split: '|' -%}11 <a href="{{ parts[1] | strip }}">{{ parts[0] | strip }}</a>12 {%- endfor -%}13 </div>14</div>
Full source is for members
One payment - every snippet, guide and bundle