Skip to content
Feast Design Co.
  • Get the Feast Plugin
  • DocumentationExpand
    • Feast Plugin
    • Feast+
  • Open a Support Ticket
New to Feast? Start Here
Login/Account
Feast Design Co.

Getting Started

3
  • Migrating to Feast
  • Staging Site
  • Sign Up For The Newsletter

Genesis Setup

15
  • Edit Post Info
  • Update Author Bio
  • Modern Navigation
  • Clear Cache ‼️
  • Layout
  • Modern Index
  • Feast Plugin Setup
  • Modern Homepage Setup
  • Modern Menu for Desktop
  • Modern Mobile Menu
  • Sidebar
  • Modern 404
  • Modern Recipe Index
  • Modern Categories
  • Modern Footer

Plugin Settings

18
  • Edit Body Font Size
  • Subscribe button
  • Social Icons
  • Recipe Key
  • Post Template
  • Table of Contents
  • Post IDs
  • Google Trusted Source
  • Edit Leave a Reply
  • Disable Trackbacks
  • Modern Previous + Next
  • Posts per page
  • Breadcrumbs
  • Productivity
  • Smooth scrolling
  • Image unlink
  • Replace recipe card Jump To buttons
  • BETA

Block Editor 101

4
  • Block Editor
  • Block themes
  • Patterns
  • Why we don't support block-level styling

Blocks & Patterns

15
  • Post Template
  • Numbered Lists
  • Table of Contents
  • Full Width Banner
  • Featured Recipe Pattern
  • Why we don't support block-level styling
  • Process Shots
  • Inline Heading Group Block
  • Step Instructions
  • Advanced "Jump To" Links
  • Reader Review
  • Feast Patterns
  • Displaying Post Blocks (FSRI)
  • Displaying Category Blocks (FSCI)
  • Scheduled Categories

Page Templates

3
  • Custom 404
  • How to use Categories
  • Shop page

Customize

8
  • Customizer
  • Customizations
  • Customization Referrals
  • Why we don't support block-level styling
  • Per Page CSS
  • Why you shouldn't make customizations
  • Custom CSS
  • Customization Support

Images

10
  • Post Images
  • Default Image Size
  • Modern post image sizes
  • How thumbnails work
  • Modern Thumbnails (Featured Images)
  • Troubleshooting Featured Images
  • Displaying Post Blocks (FSRI)
  • Process Shots
  • Image Alt Tags
  • Why do my images look different in edit post and live?

Feast+

32
  • What is Feast+?
  • Feast+ Setup
  • Design Kits
  • Feast+ Fonts
  • Feast+ FAQ
  • Feast+ Showcase
  • Feast+ Patterns
    • Top Banner
    • Custom list styling
    • Numbered Lists
    • Full Width Banner
    • Feast+ Footer
    • Feast+ Call to Action
    • Icon Tip Boxes
    • As Seen In
    • Reader Review
  • Feast+ Pre-Built Pages
    • Feast+ Homepage
    • Feast+ Index
    • Feast+ Category Pages
    • Social Landing Page (Link In Bio)
  • Branding & Design
    • Feast Fonts
    • Feast+ Branding & Design
  • Feast+ Features
    • Full-Width Post Header
    • Custom List Styling
    • Colored Numbered Lists
    • Top 10 List Styling
    • Step Instructions
    • Heading Styling
    • Top of Site CTA Banner
    • Custom Background Pattern
  • Design Kits
    • Feast+ Design Kits (Members)
    • Feast+ Design Kit Library
    • Feast+ Design Kit Instructions

Recipes

7
  • Reviews
  • Recipe Key
  • Ingredients
  • Displaying Category Blocks (FSCI)
  • Displaying Post Blocks (FSRI)
  • Featured Recipe Pattern
  • All Recipes

Social Sharing

2
  • Social Icons
  • Tiktok

Logo & Fonts

5
  • Retina Quality Logo
  • Create your logo
  • Edit Body Font Size
  • Fonts
  • Logo

Categories

3
  • Why Isn't the Category Description Appearing?
  • Displaying Category Blocks (FSCI)
  • How to use Categories

Speed & SEO

18
  • Image Alt Tags
  • Speculative Loading
  • Google Trusted Source
  • 301 Redirects, Links, Canonical and Pagespeed
  • Image file size vs. pagespeed
  • Duplicate Content
  • Lazyloading comments
  • CLS
  • Blocking Time
  • SEO
  • Skip lazy loading first post image
  • Horizontal scrolling
  • Smooth scrolling
  • Pagination
  • Pingbacks
  • INP (Interaction to Next Paint)
  • CDNs
  • Site Speed

Blogging Resources

15
  • Food Blog Sitelinks
  • Photography
  • Understanding "penalties"
  • Food Blog Page Structure
  • Food Blog Site Structure
  • Comments
  • Internal links
  • Analytics
  • Pagespeed
  • SEO for Food Bloggers
  • Modern guidelines for page headings
  • How to Write a Recipe Post
  • Recipe Page Guidelines for Food Bloggers
  • Image Optimization
  • Recipe Update Checklist

Legal Resources

5
  • Legal Resources
  • DMCA and Copyright Infringement
  • Copyrights
  • Accessibility
  • Private Label Rights (PLR)

Troubleshooting

10
  • Why do my images look different in edit post and live?
  • Why Isn't the Category Description Appearing?
  • Troubleshoot Plugin Conflicts
  • How to update your theme
  • Feast Plugin FAQ
  • W3 HTML Validation
  • Sorry, this file type is not permitted for security reasons.
  • Troubleshooting Featured Images
  • Either "name" or "item. name" should be specified (in "itemListElement")
  • Clear Cache ‼️

Compatibility

2
  • Compatibility
  • WP 6.7

Integrations

8
  • Ecommerce
  • Ingredients
  • Google Trusted Source
  • Contact Forms
  • Translation
  • WP Recipe Maker
    • Reviews
    • QR Code
    • Ingredients

Developer Resources

6
  • Multisite
  • Feast Plugin Deprecated
  • W3 HTML Validation
  • Feast Plugin: Disable Theme Google Fonts
  • Rethinking the Thumbnails
  • Design
View Categories
  • Home
  • Documentation
  • Genesis (Legacy)
  • Customize
  • Per Page CSS

Per Page CSS

This tutorial features the Feast Plugin, which enhances and extends your theme to improve SEO, pagespeed, accessibility and user experience.

The per-page CSS lets you add custom CSS to specific pages, to help improve pagespeed.

Note: this is for pages only, not posts. All posts should have identical site-wide styling applied in "Additional CSS".

This is in contrast to the "Additional CSS" page, which loads styling across your entire site, even when it's not used, and results in this warning from Google Pagespeed Insights:

For example, the Modern Homepage Styling Guide can be applied to just the homepage instead of loading on categories and posts.

Note: This is a step that can help mitigate the warning above, but will not resolve it entirely. That will require a separate theme update down the road.

Jump to:
  • Where
  • Why (part 1)
  • Why (part 2)
  • Convert the Modern Homepage
  • Minification and Critical Path CSS
  • Disabling
  • Removed from posts

Where

A text box has been added to the bottom of the block editor to place your custom CSS:

You should use this for any page that you have page-specific styling that isn't used on the rest of the site, including:

  • contact
  • about
  • recipe index
  • landing pages for photography services, newsletters, shop pages, media kits

Why (part 1)

We're continuing to refine the way that we style the themes and plugin, by removing unnecessary CSS. This will help to address the "Remove unused CSS" warning in Google's Pagespeed Insights tool:

The theme stylesheet is a "monolithic" file that contains styling for every page on the site, including the homepage, category pages, posts and other components such as the enews widget, forms and plugins - even when those things aren't present on the page. This isn't great.

By enabling per-page CSS, we can strip away unused styling from the theme stylesheet in the future.

Why (part 2)

Currently, styles from the theme's stylesheet and the "Additional CSS" screen are not loaded into the block editor.

This means that any styling you add to specific pages are not reflected in the block editor, only the front-end.

The styling in the per-page CSS textbox is loaded into the block editor as well as the front end, creating a more consistent post editing experience.

Convert the Modern Homepage

The first place that this can be used is on the Modern Homepage, to apply the custom Modern Homepage styling to the block editor so that it display more inline with the front-end:

This video shows how to pull the styling out of style tags in a Custom HTML block, but the same can be done to other pages (eg. "About", Contact) so that their page-specific styling isn't loading site-wide.

Note: we'll need to release an update to apply the entry-content class to the block editor for some of the content-specific styling to work in the block editor.

Minification and Critical Path CSS

The per-page CSS is loaded using regular <style> tags in the website header, and should be picked up by WP Rocket.

If using critical path CSS from WP Rocket, you'll want to generate post-specific critical path CSS for the pages that you add per-page CSS to:

WP Rocket settings sidebar in block editor

We don't recommend or support any other caching plugins.

Disabling

We've departed from the standard policy of having to enable this in the Feast Plugin, to having it automatically enabled.

You can add a code snippet to disable it with:

add_filter( 'feast_block_editor_per_page_css', '__return_false' );

Removed from posts

We've removed the per-page-CSS from posts because this was only designed to be used on pages.

Posts should have consistent styling, which is applied to the "Additional CSS" screen.

This is because you can't, and shouldn't individually style 400 recipe posts - they should all look identical. This is because changing formatting, styling or colors on 400 individual posts during a rebrand, or to comply with SEO or accessibility guidelines, is completely insane.

If you've accidentally added per-page-CSS to posts, you can still access this by going to Menu > Preferences > Panels > Custom Fields

This will add the Custom Fields panel below the block editor, with the feast_post_custom_css field containing your styling that you can move to the "Additional CSS":

Was this helpful?

  • Happy
  • Sad
Why we don't support block-level stylingWhy you shouldn't make customizations

Products

  • Feast Plugin
  • Feast+
  • Feast+ White Glove
  • Feast+ Style Refresh
  • Done-for-you Services
  • Demo trial
  • Themes
  • Theme Install Service
  • Classic Themes
  • Lattice Plugin
  • Travel
  • Logo creation

Help

  • Kadence tutorials
  • Kadence Install
  • Documentation & Tutorials
  • Feast+ Members
  • Discounts & Coupons
  • Trellis 2.0
  • Trellis
  • Trellis Migration
  • Compatibility
  • Support
  • Legal resources
  • Genesis vs. Kadence
  • Changelog
  • How to start a blog course

Company

  • Privacy Policy
  • Refund Policy
  • Terms & Conditions
  • Why Feast
  • Principles & Best Practices
  • Affiliates
  • Contact
  • Opinion Disclaimer
  • AI Policy

Copyright ©  2026 · Feast Design Co. Results not typical or guaranteed. Our themes and plugins are just a small part of the overall effort involved in running a food blog. Nothing on this website shall constitute legal or financial advice, always consult a local lawyer and accountant. Accessing this website and all transactions herein are under the laws and jurisdiction of Toronto, Ontario, Canada. All pricing is USD.

  • Get the Feast Plugin
  • Documentation
    • Feast Plugin
    • Feast+
  • Open a Support Ticket
Facebook X Instagram
Search