We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Static Content Home Page?

  • #640
    Avatar photo[anonymous]

    Are there any templates or settings where you can add permanent/static content to the home page?

    Avatar photoBob

    You can try to add your own content by editing the index.hbs file ‎⁨(Documents ▸ ⁨Publii⁩ ▸ ⁨sites⁩ ▸ ⁨YOUR_SITE ▸ ⁨input⁩ ▸ ⁨themes⁩ ▸ ⁨YOUR_THEME)

    To preserve the custom code changed from being overwritten the next time your theme is updated, please make sure you have created override files, which are essentially copies of the existing theme files and are stored separately →

    Avatar photo[anonymous]

    Thank you, I’ll take a look at that.

    Avatar photo[anonymous]

    Hi Bob,

    I managed to get some static content into the page template, but is there anyway to make that only appear on the home page? Does it have a special page ID?

    Or is this where I’d need a template with a Hero area?


    Avatar photoBob

    If you modify the index.hbs file, the changes will be visible on the main page only.