Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter netstu

    (@netstu)

    In the style.css of the custom PDF template directory I can see that body has css rule:

    background: #fff;

    Is it done by just changing this to:
    background-image: url(“https://…”);

    Thanks!

    Plugin Contributor alexmigf

    (@alexmigf)

    Hello @netstu

    The best way to do this is adding the code snippet below inside a text custom block with our Premium Templates extension.

    <img src="https://i.pinimg.com/originals/8e/09/64/8e09645676f35f79514eaaff3bcdceb7.png" style="z-index:-999;position:fixed; top: -1cm; left: -2cm; height: 297mm; width: 210mm;">

    The image should have 210mm width and 297mm height for a better result.

    If you require it on the full page you need to set the margin to the body and that could lead to problems when the document has more pages, so this method is preferred to the CSS customizations.

    • This reply was modified 4 years, 1 month ago by alexmigf.
    Thread Starter netstu

    (@netstu)

    Hi Alex,

    Is this also possible with the free version of the plugin?

    Thanks

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @netstu

    You can add the code above inside an action hook.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Background image / template’ is closed to new replies.