• I have a site that I want to add a hero to the top of my homepage when my settings > reading “Your homepage displays: Latest Posts”

    I was thinking of just creating an arbitrary page adding the blocks and then loading that page’s content at the top of the template for the homepage, but is there a more straightforward way?

    Thanks,
    Mat

Viewing 1 replies (of 1 total)
  • Hey Mat,

    Your methods sounds like the most straightforward way.

    Otherwise, you’ll need to set up a child theme to modify your theme’s home page file (either index.php home.php, or front-page.php), add a function to your theme’s function.php file, or add the code using a site-specific plugin.

    From what I understand, is this what you’re suggesting:

    • Create a static page under Pages > Add New, such as Home
    • Add the hero here using an HTML block or Image block
    • Below that add a Latest Posts block
    • Set the Settings > Reading to A static page and select Homepage: Home

    ?

Viewing 1 replies (of 1 total)
  • The topic ‘Possible to add blocks to homepage w/ “Your homepage displays: Latest Posts”?’ is closed to new replies.