Sign in

Static Content Home Page?

  • This topic has 4 replies, 2 voices, and was last updated 4 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #640
    Avatar phototonywaghorn

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

    #644
    Avatar photoBob

    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
    Avatar phototonywaghorn

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

    #683
    Avatar phototonywaghorn

    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
    Avatar photoBob

    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.