Sign in

Static Content Home Page?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #640
    tonywaghorntonywaghorn

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

    #644
    BobBob
    Support

    Hi,
    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 → https://getpublii.com/dev/theme-overrides/

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #646
    tonywaghorntonywaghorn

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

    #683
    tonywaghorntonywaghorn

    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?

    Thanks

    #686
    BobBob
    Support

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

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.