Homepage Hero Section
Moment theme displays a hero section on the homepage with site title, description, and image by default. You can customize these elements by creating a custom page with the slug home-hero
. This allows you to override the default hero content with your own title, excerpt, and featured image.
How It Works
When you create a page with the slug home-hero
, Moment theme will automatically use:
- Page title β Hero section title
- Page excerpt β Hero section description
- Featured image β Hero section background image
If no home-hero
page exists, the theme falls back to your siteβs title, description, and cover image from Ghost settings.
Creating the Hero Page
Follow these steps to customize your homepage hero:
Step 1: Create a New Page
- Go to Pages in your Ghost admin
- Click New page
- Set the page title to your desired hero title (e.g., βWelcome to My Photography Portfolioβ)
- Add your hero description in the page excerpt
- Upload your hero image as the featured image
Step 2: Set the Page Slug
- In the page editor, click the Settings button
- Change the Page URL to
home-hero
Step 3: Publish the Page
- Click Publish to save your changes
- Visit your homepage to see the new hero section