2

How can I customize the header and footer in Firefox's print preview?

By default, the page title is displayed at the top left, the URL at the top right, the date at the bottom left, and the page numbers at the bottom right.

I used “about:config” to change the configuration in the fields “print.print_header” and “print.print_footer” to the values &T, &U, &PT, and &D according to my preferences, but the entries have no effect on the preview and the print result.

I have Firefox version 140.0.4 and Ubuntu 25.04 installed

5
  • Can you try setting print.tab_modal.enabled to false in about:config? On Ubuntu, Firefox sometimes uses the system's print dialog instead of its own making the header/footer customizations less reliable. Commented Jul 26 at 16:12
  • It also seems that the print.print_header and print.print_footer preferences are no longer available in Firefox 140. Firefox now uses these six separate preferences for header and footer customization: print.print_headerleft print.print_headercenter print.print_headerright print.print_footerleft print.print_footercenter print.print_footerright Commented Jul 26 at 16:19
  • 1
    @newelski :I hat set the values for print.tab_modal.enabled always to "false". I've also heard that some preferences are no longer available in Version 140, but I can't believe that there is no workaround. Commented Jul 26 at 17:04
  • Have you tried setting print.show_page_setup_menu to true in about:config to restore the Page Setup dialog to the File menu? Commented Jul 26 at 17:07
  • Yes, but without any effect. Commented Jul 26 at 18:09

1 Answer 1

1

For simplicity I have added Stack Overflow as header and footer centre to prove it works as per the application. I have not removed existing as that's more work to return them later. So here is the status in preview.

Version 140 not yet 141

enter image description here

enter image description here

Here the output in the PDF printout as I don't have a real printer for showing it should work there too.

enter image description here

Here are my user altered about:config settings

print.print_footercenter    StackOverflow   
print.print_footerleft  &PT 
print.print_footerright &D  
print.print_headercenter    StackOverflow   
print.print_headerleft  &T  
print.print_headerright &U  
print.printer_Mozilla_Save_to_PDF.print_footercenter    StackOverflow   
print.printer_Mozilla_Save_to_PDF.print_footerleft  &PT 
print.printer_Mozilla_Save_to_PDF.print_footerright &D  
print.printer_Mozilla_Save_to_PDF.print_headercenter    StackOverflow   
print.printer_Mozilla_Save_to_PDF.print_headerleft  &T  
print.printer_Mozilla_Save_to_PDF.print_headerright &U
Sign up to request clarification or add additional context in comments.

1 Comment

I just noticed that there are other parameters for each printer besides print.print_headerleft: [email protected]_footerleft [email protected]_footerright print.printer_Mozilla_Save_to_PDF.print_footerleft print.printer_Mozilla_Save_to_PDF.print_footerright The parameters “print.print_footer...” had no effect, but the parameters “print.printer_Mozilla_Save_to_PDF.print_footer...” affect PDF printing, and I have finally made the settings I wanted. Thank you very much !

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.