AdvancedHomepage

Topic chips

The row of topics above Latest stories: where the chips come from (a setting, the Topics page, or your most-used topics), how a tap filters the feed in place, and what happens without JavaScript.

Above Latest stories sits a row of chips: All stories, then your topics. A tap shows that topic's stories where the feed was; All stories brings the page's own back. The same row heads every topic page, with the current topic marked.

Where the chips come from

Ventura tries three sources, in this order, and uses the first that answers:

  1. The Topic chips setting (Customize → Homepage): a comma-separated list of tag slugs, in your order, up to twelve. See Homepage settings.
  2. The tags on your Topics page, in the order you added them, up to eight. The same tags choose the Topics section's tiles, so one list runs both.
  3. Your five most-used public topics, by story count.

A source that answers nothing (a setting full of typos, a Topics page with no tags) falls through to the next. Only public tags ever render; internal tags are skipped.

To curate the chips without a setting, open your Topics page in the editor and add up to eight public tags under Tags, in the order you want them.

To choose chips that differ from the Topics section, fill the Topic chips setting instead.

Update or save. The row follows on the next load.

In Ghost Admin: the Topic chips setting

The Design panel's Theme tab, with the Homepage settings and the Topic chips field

On your homepage

The topic chips above Latest stories

Filtering in place

Latest stories filtered to one topic, the chip marked

A tap on a chip fetches that topic's page and swaps the feed for the topic's own: its lead story, its grid and its own Load more button (or, with Feed pagination set to Pages, its Newer and Older links, which open the topic's own pages). The chip shows a small ring while the page is on its way, the feed dims, and a line for screen readers says what the feed now shows. The address bar does not change, so a reload shows the home page again, like a tab in an app. Topics a reader hovers are fetched ahead of the tap, so the swap is usually instant.

Load more and All stories

All stories restores the page as it first loaded. Stories a reader added with Load more before tapping a chip are not kept; they come back with the next Load more.

On phones

The row scrolls sideways, bleeding into the page's margins so the first chip lines up with the heading, with the current chip brought into view and a fade on the side that still has chips.

Without JavaScript

Every chip is an ordinary link to its topic page, so without scripts a tap opens the topic page instead of filtering in place. Nothing is lost; the reader lands on the same stories.

Removing the row

To keep the feed and drop the chips, add this to Settings → Code injection → Site header:

<style>
  [data-component="topic-chips"] { display: none; }
</style>