View Single Post
Old 06-23-2013, 03:35 PM   #21
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
For those of you sideloading their epubs, there is a way to force the display of the first page (usually the cover).

It's always a good thing to first add the semantic "Cover".

Now here is the trick with Sigil in code view, just add this code in the (x)html cover page:

<h1 class="nodisplay">Cover</h1>;

and this one in the CSS:

.nodisplay { display: none; line-height: 0; }

There will be a "real" heading 1 named "Cover" in the epub, that will be invisible ("display: none;") and taking no space because of "line-height: 0;". The eReader will start there because it is a heading. It works well on the Kobo Touch and my Sony.

After that you must, always with Sigil, update the TOC (click Generate TOC).

We must thank Dave Heiland (see his Sigil User Guide 0.7.2) for this wise trick.
Arios is offline   Reply With Quote