This is a feature of the Feast Plugin
Check out the Modern Homepage Showcase for examples of sites that have made the transition.
The Feast Plugin is designed to allow us to release frequent, minor updates to functionality as best practices change.
Unfortunately, the theme homepage is built using functionality via the "Featured Posts" widget that is simply unfixable from our side. In contrast, the modern homepage allows us to provide automatic updates over time as necessary through the plugin-based shortcode.
See: Modern Homepage Setup.
- Built as a WordPress "Page"
- Uses the Feast Plugin's updated FSRI shortcode
- Organizes and displays posts by logical categories
- Follows SEO best practices
- Dedicated areas for unique content
- Follows accessibility best practices
- Built using the widget area
- Uses the theme's outdated "Featured Posts" widget
- Displays random posts based on recency
- Very poor SEO
- No unique content
- Not designed for accessibility
The FSRI (Feast Simple Recipe Index) shortcode provides a solution that
- is better for SEO
- provides greater design and content flexibility
- resolves some long-standing accessibility issues
Why would you care about accessibility? Because of this:
Note: SEO and user experience go hand-in-hand - good SEO is a good user experience. We focus on SEO below but the same applies for UX.
- Who should use the Modern Homepage?
- SEO: Reduced DOM nodes
- SEO: Remove unnecessary CSS
- SEO: Click depth and recipe indexes
- SEO: Prevent repetitive post listing
- Accessibility: Headings
- Accessibility: Redundant links
- W3: Article schema
- Better for bloggers
- Smoother theme updates
- 💬 Comments
Who should use the Modern Homepage?
The theme homepage is now considered to be outdated. It's bad for users, it's bad for SEO and it's bad for accessibility.
The Modern Homepage not only fixes these issues, but allows for more customization.
SEO: Reduced DOM nodes
The theme homepage uses an unnecessary number of DOM elements to display what is basically just an image and title.
The FSRI shortcode significantly reduces this by:
- wrapping the image and title in a single link (per this Yale accessibility guideline)
- removing unnecessary containers
To display just 4 posts for example, the "Featured Posts" widget uses 34 DOM nodes, while the FSRI shortcode uses 33% fewer at just 22 DOM nodes.
On a homepage displaying 5 categories with 4 posts each, this adds up to a reduction of 60 DOM nodes alone.
Why does this matter? Having very heavy pages (high DOM nodes) causes the browser the render the page slower, which decreases pagespeed. It can also cause rendering issues for Google, which may result in content not being indexed.
SEO: Remove unnecessary CSS
There's chunks of CSS embedded into the theme stylesheet that are dedicated to specific pages, without actually being used on those pages. The styling for homepage widgets are one example of this.
By moving to the FSRI shortcode that can be used on the homepage, category pages and recipe posts, we can eliminate homepage-specific CSS, making the whole theme leaner.
This not only reduces the KBs required to download, it also reduces the browser rendering time, making all pages appear to load faster.
We can further trim down the styling by removing tweaks made to sidebars and widgets, making the site more consistent aesthetically as a whole.
SEO: Click depth and recipe indexes
The most important page on your site is your homepage. It typically receives the most links, it's used as the "launching point" for Google's crawling, and categories and pages linked to from the homepage, get a big internal link boost. It's the foundation of a good site structure.
"…we'll see the home page is really important, things linked from the home page are generally pretty important as well.
And then… as it moves away from the home page we'll think probably this is less critical."
That pages linked directly from the home page are important is fairly well known but it's worth repeating. In a well organized website the major category pages and any other important pages are going to be linked from the home page."John Mueller, Google
The recipe index in the themes is a better homepage than the actual homepage, organizing posts by topic rather than recency. Unfortunately, it typically has zero backlinks, has no unique content, and in some cases uses mobile-unfriendly drop-down menus.
The alleged simplicity of a recipe index was actually a problem-in-disguise for food bloggers, who mistakenly believe their job was complete after setting it up. It created a number of issues from:
- poor internal linking to categories
- poor sequence of posts being displayed (date-based, rather than category-based)
- no unique content on the homepage, recipe index or categories
The solution? Merge it into one homepage.
Update 2020/04/04 - it's been suggested that we can convert the "recipe index" into a page dedicated to displaying the categories using the Simple Category Index. This is being looked into.
SEO: Prevent repetitive post listing
If using multiple "Featured Post" widgets on a page and sidebar, posts can be displayed repetitively if they're found in more than one category.
The FSRI shortcode automatically excludes any previously displayed post, surfacing new content instead.
This provides more options for the reader, and better internal linking for SEO.
The theme homepage uses an incorrect heading structure, trying to nest post-title <h2>s under headings as <h3>s.
So what happened to all the post title <h2>s on the theme homepage? Well, they were turned into regular hyperlinks, because that's all they are: links to other posts. Links should not be headings.
Accessibility: Redundant links
The "Featured Posts" widget displays both the image and title with separate links, causing problems with keyboard navigation:
The FSRI shortcode wraps both the image and post title in a single link, removing this accessibility issue. This is the recommended method per this Yale accessibility guideline for adjacent links.
This also reduces redundant internal linking for SEO.
Note: the image alt tags in the modern homepage are intentionally left blank per w3 decorative image accessibility standards, because they're decorative only. The description for screen readers comes from the post title itself.
W3: Article schema
The theme homepage uses the article element to display the posts in the "Featured Posts" widget.
However, the most comprehensive documentation on the article element has very a specific use case for this:
The HTMLMozilla Article Element Documentation
<article>element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication). Examples include: a forum post, a magazine or newspaper article, or a blog entry.
This means that each post we display should be a self-contained, complete article that other sites can copy and distribute. This is not the case.
Each post we display using the "Featured Posts" widget is really just a link going to the actual post on a separate page.
A section forms part of something else. An article is its own thing.HTML Specification
In retrospect, this has been incorrectly used for years, which we'll chalk up to an oversight.
While not historically an issue on the homepage, the images in the "Featured Posts" widget lacked the data-pin-nopin="true" attribute.
Images that are just links to other posts should not be pinned, and this attribute has been added to the FSRI shortcode.
Better for bloggers
The FSRI has best practices baked into it with defaults set, instead of options.
The "Featured Post" widget contains over a dozen settings, the majority of which are completely useless and unused. This creates unnecessary confusion and uncertainty.
The Modern Homepage is built using the block editor as opposed to widgets, which provides greater flexibility in the type of content that can be added.
By beginning the transition to the block editor now with the homepage, we'll reduce the number of changes coming all at the same time, down the road.
Smoother theme updates
Both the homepage and recipe index are widget-based and can get jostled around by a theme update. When changing themes, they have to be completely rebuilt.
A homepage built with the FSRI shortcodes will remain the same before and after a theme update or theme change, simply with new styling applied to it.
The Modern Homepage is a huge technical leap forward, thanks to feedback and contributions from: