Static Content Home Page?
- This topic has 4 replies, 2 voices, and was last updated 1 week, 2 days ago by .
- October 29, 2019 at 10:24 am #640tonywaghorn
Are there any templates or settings where you can add permanent/static content to the home page?October 29, 2019 at 1:55 pm #644BobSupport
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!October 29, 2019 at 2:15 pm #646tonywaghorn
Thank you, I’ll take a look at that.November 4, 2019 at 12:22 pm #683tonywaghorn
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?
ThanksNovember 4, 2019 at 2:22 pm #686BobSupport
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!
- You must be logged in to reply to this topic.