Adding script to a custom header in Pro

Hello,

to one of my custom headers in Pro. What is the best way to do this?

Update:
I installed the “insert into headers & footers” plugin and it specifies the following:
“These scripts will be printed in the section.”
Will that go into all of my custom headers or do I need to find another solution?

Thank you.

  • K

Hi @kcostellomak,

Thank for reaching out to us. In header builder there is JS section where you can add your script for that particular custom Header (see screenshot)

Please note that there is no need to add script tags <script></script> there because they are already included. You can get started by writing direct JavaScript code. Hope this helps!

So how/where would I add something like this?
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>

UPDATE: I added it to a text field in the header. Since I don’t want the header to show I set the margins to zero so it’s an invisible header and the script is working. Kind of a hack but it works.

Hello @kcostellomak,

We are just glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!

Best Regards.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.