10-30-2023, 11:41 AM | #1 | |
Zealot
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Lost the insertion of the css in header
Calibre 5.44
Suddenly this morning the editor stop adding css files in the header when creating a new file. And in <title><title> the apostrophe is change to ' Which is result in this Quote:
|
|
10-30-2023, 12:54 PM | #2 |
Well trained by Cats
Posts: 30,409
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
It Never did this automatically.
Once you have a CSS, you must use select the files that you want to link to a EXISTING stylesheet: right click on one of the selected: Link stylesheetS |
Advert | |
|
10-30-2023, 01:15 PM | #3 | |
Zealot
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Sorry. I don't think we are talking about the same thing. Maybe I wasn't clear.
Until this morning, when creating through the calibre editor a new html file to add to a book it always add in the <head></head> of the new file the links to all css files already in the book. The result should have been Quote:
|
|
10-30-2023, 01:22 PM | #4 |
Well trained by Cats
Posts: 30,409
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Yes. The procedure I mentioned PUTS them in that place.
You are posting in Editor... Were you having this issue with CONVERSION ? |
10-30-2023, 01:43 PM | #5 |
Zealot
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Conversion ?
I'm in calibre editor. I'm working on an epub file upload in the editor and I'm adding and html (or htm or xhtml) file to that epub. (I'm working in french and I'm not as quite as familiar with the English words apply to calibre and epub) |
Advert | |
|
10-30-2023, 03:21 PM | #6 |
Well trained by Cats
Posts: 30,409
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I had to be sure.
Right click the book (section file):Link style sheets The first is where yo right click. The menu item is at the bottom The you should see something li #2 (it will list all stylesheets, but you only need link those you need for that file) |
10-30-2023, 03:36 PM | #7 | ||
Wizard
Posts: 1,336
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
When creating a new xhtml file within the epub, the header and the stylesheet link are always created with the page. Never have I had to Link Stylesheets from the context menu for a newly created page. Quote:
1. "Replace HTML entities as they are typed" is enabled 2. Click on "Change templates" and ensure the head tags are like this... <head> <title>{TITLE}</title> </head> |
||
10-30-2023, 03:43 PM | #8 |
Zealot
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Thank you.
Now I understand your explanation but I never need to use that procedure. As I said, until this morning, it was automatic at the creation of a new file: all css files present in the book where link in the <head> section. Something change and I don't know what. |
10-30-2023, 03:48 PM | #9 | |
Zealot
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Quote:
Should there be a reference to link the css |
|
10-30-2023, 03:59 PM | #10 |
Wizard
Posts: 1,336
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
10-30-2023, 04:09 PM | #11 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Maybe too simple...when adding the file there is a line that says "Automatically add style-sheet links into new HTML files" — is this checked?
|
10-30-2023, 04:50 PM | #12 |
Well trained by Cats
Posts: 30,409
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Learned something new (I almost always am inserting a file into existing, so that is the stylesheet I link to)
|
10-31-2023, 07:36 AM | #13 | |
Zealot
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Quote:
Thank you all specially retiredbiker. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
header color cannot be change with CSS | issam.seghir99 | Viewer | 0 | 11-24-2022 03:38 AM |
Lost CSS / cover | rikemice | Conversion | 7 | 04-29-2017 10:04 PM |
pdf header reference to css | rjwse@aol.com | Conversion | 11 | 12-09-2016 01:34 PM |
Please help me with CSS code...am really lost | Iroc | ePub | 21 | 03-31-2013 05:42 PM |
Lost in CSS for a motto | Artha | ePub | 1 | 12-01-2011 02:43 AM |