Hi @gahb
The CSS option only affects the design of the generated EPUB or PDF files. It doesn’t apply to the public website or interact with the WP Twenty Twenty-Three theme.
You can visit the plugin docs to know more about how it works https://docs.mpl-publisher.com/docs/book-options/book-details/#design
Thread Starter
gahb
(@gahb)
@ferranfg Thank you for the details.
I have been testing out my CSS and simplifying it for epub, but it isn’t working for the pdf version. Do you have any documentation and or tips on how to get complex CSS to be translated/simplified for epub and pdf?
Thank you
Hi @gahb
The CSS for the PDF is working correctly. You can verify this by adding something simple like:
body { color: red !important }
As shown in this screenshot: https://share.cleanshot.com/SsBk1Sxk and you’ll see the style applied in the generated book.
Regarding your question, the best approach is to start with small adjustments and build from there. The generated book uses basic HTML tags (h1, h2, p, etc.), so you can target those elements directly with your custom styles.
You can also use the default theme as a starting point and modify it based on your needs:
https://github.com/ferranfg/mpl-publisher/blob/master/assets/css/theme-default.css