Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-04-2025, 02:18 AM   #1
pieterratering
Junior Member
pieterratering began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2024
Device: iPad
Change the Blank HTML file

When I choose the menu item "'Add Blank HTML File" Sigil adds a new HTML with this content:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>

<body>
<p>*</p>
</body>
</html>


I would like to have it add a link to my default style sheet too in the head-section:

<link href="main.css" type="text/css" rel="stylesheet"/>


Is that possible?
pieterratering is offline   Reply With Quote
Old 05-04-2025, 02:57 AM   #2
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 269
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Should be possible by creating a template and storing it in your Sigil Preferences location.

Full details are in the Sigil User Guide but roughly speaking, you edit the existing new xhtml page to your liking and then save it as user-template2.xhtml (for epub2 files) or user-template3.xhtml (for epub3 files) to your Sigil Preferences location.

You can do the same for a custom CSS template file.

To find your Sigil Preferences location, in Sigil go to Plugins > Manage Plugins and click the button, "Open Preferences Location", at the bottom left

Last edited by philja; 05-04-2025 at 03:02 AM. Reason: add info on Preferences location
philja is offline   Reply With Quote
Old 05-04-2025, 03:27 AM   #3
pieterratering
Junior Member
pieterratering began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2024
Device: iPad
Oké Philja. Should be easy... I will give it a try.

Update: YES! This works. That's great. Thanks again.

Last edited by pieterratering; 05-04-2025 at 03:30 AM.
pieterratering is offline   Reply With Quote
Old 05-04-2025, 04:03 AM   #4
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 269
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Glad it worked for you.
philja is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing default blank HTML file WV-Mike Sigil 3 07-14-2023 06:28 PM
Add blank HTML file mt.msla Sigil 5 05-18-2023 07:45 PM
How to change image location for html file converted from epub? vedri ePub 2 12-19-2020 11:09 AM
HTML input plugin stripping text within toc tags in child html file nimblebooks Conversion 3 02-21-2012 03:24 PM
Convert HTML to MOBI (HTML recognized as ZIP file) pdubois Conversion 1 01-25-2011 12:55 PM


All times are GMT -4. The time now is 10:57 AM.


MobileRead.com is a privately owned, operated and funded community.