mnelson4 / printmyblog

WordPress Plugin that simplifies printing your entire blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Headers and footers in Word docs

mnelson4 opened this issue · comments

Using that technique kinda works, but the HTML is really confusing (requires a table and some extra divs).
But now I'm trying to generate a more complex HTML header but getting errors...

The word doc won't display my hacked-in-images. I think I should instead:

  • in an experimental branch
  • add simple field for header and footer to the design template
  • make sure images placed in there are visible in the word doc
  • make sure the headers don't disappear when saving as docx
  • then try copying the more complex HTML into those fields and see if it appears
  • have header or footer reach to the end of the page
  • have header only appear on first page (I supposed mso-first-header: ID would work but didn't; may need to monkey with sections like provided template does)
  • maybe have options for "first page header", "subsequent headers", and background image;
  • switch those fields to be WYSIWYG or block editors: https://developer.wordpress.org/reference/functions/wp_editor/ and https://developer.wordpress.org/block-editor/how-to-guides/platform/custom-block-editor/tutorial/

Closing until there's some feedback on this