![]() |
#1 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Nov 2010
Device: none
|
Footer or Header?
Is there a way to add a footer or header in Sigil?
For example I would like a certain link to show up at the bottom (or top) of each page in the book without having to manually add it to every page. |
![]() |
![]() |
![]() |
#2 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 120
Karma: 5276
Join Date: Feb 2013
Device: Asus Zen Pad
|
I have a book with a link back to the TOC at the bottom of every chapter.
I put the link into a template file called template.xhtml, then I start each chapter using the template file instead of creating a new file using Sigil. All of my boilerplate, for example the inclusion of my CSS, is already added into the template.xhtml file before I begin. I add the template.xhtml file to the book then rename it to the name of the chapter. Then, I put the chapter contents into the file. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,222
Karma: 142867444
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,353
Karma: 5569516
Join Date: Nov 2009
Device: many
|
You can have headers and footers at a document/file level in html5 but it is not easy to get running page headers and footers since page size is variable and unknown. In epub3 you can simulate it using an aside tag, some css such as "display: oeb-page-header" and/or javascript to open a pop-up window. I am sure there are other ways to simulate it as well.
But only the reading device know its page size and only it can allocate space in its window layout for each page of text for something like a running header or footer. It is typically not part of the epub itself, but of the device. Same with pop-up footnotes. |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,219
Karma: 202024788
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13056777
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Again: What are you trying to accomplish here? What is the goal?
Quote:
If it helps, explain it in physical book form: Are you trying to recreate headers (chapter title) + footers (page numbers)? And swapping between them on left/right pages? Or something like that? Because that kind of information is generated and displayed automatically by the device/reader. Remember: Ebooks =/= Print books, and there are some things you just don't transfer over. Headers/Footers being one! Side Note: And do you have a physical device to test your ebooks on? A Kobo, a Nook, a Kindle, etc. I think some of these questions would be squelched once you mess around with an ebook for a few minutes on an actual device or reader. Is there any device that even follows that? Yes, I know it's buried somewhere in the EPUB specs... but reality... Last edited by Tex2002ans; 04-23-2021 at 01:51 AM. |
|
![]() |
![]() |
![]() |
#7 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,219
Karma: 202024788
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
"Helpful" is attempting to find out what the OP is trying to do and suggesting alternatives or workarounds as others have done. "Helpful" is acknowledging that while what they want to accomplish might be technically possible, it's not encouraged, nor will it likely be supported by a lot of hardware/software out there--like others have done. "Unhelpful" is seeking to end all discussion/participation by issuing terse "can't" or "don't" replies that impart no knowledge. The latter is what Jon tends to do around here that I'm not going to tolerate. If you have no constructive advice to help the OP accomplish, or alter their goals please consider not replying at all. |
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,222
Karma: 142867444
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One suggestion is to put the links on the first page of every chapter.
Last edited by DiapDealer; 04-23-2021 at 11:07 AM. |
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,219
Karma: 202024788
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I've left the helpful portions of your most recent posts intact, Jon. The rest has been (and will continue to be) deleted. Please take the hint.
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Nov 2010
Device: none
|
I wanted the same link at the bottom of each page but I've decided against this at this point. Thank you I've learned a lot from your responses!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura H2O How to disable header and footer? | 344a | Kobo Reader | 3 | 03-02-2016 11:31 AM |
Header and Footer in EPUB | Raja1205 | ePub | 7 | 08-29-2012 03:36 AM |
Header Footer- New Updates | lmccurry78 | Conversion | 6 | 02-01-2011 04:33 PM |
Add Header/Footer | hrwriter | Calibre | 3 | 12-08-2010 06:11 AM |
Removing header and footer | radicalnomad | Calibre | 2 | 08-26-2010 11:34 AM |