• Resolved cary01

    (@cary01)


    Hi

    I’d like to know if there is a way to print just the popup.
    I have a recipe that I would like users to be able to print if they wanted to.


    and where would I add it? I tried some plugins but that gave the option to print the fist image and not the popup
    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cubecolour

    (@numeeja)

    This can be done by adding a ‘print’ link or button to the page that pops up.

    The simplest way to do this is probably to add a link somewhere on that page (using the text editor) like this:

    <a href="javascript:window.print()">PRINT</a>

    If a classname is given to the element, it can be targeted with CSS & styled to appear as a button, or you could use an image instead of the link text.

    Alternatively look for a plugin which will enable you to add a print button/link. I have not tried print-o-matic, but it looks like it might be suitable for this.

    Thread Starter cary01

    (@cary01)

    thanks, this is my code, where would I add this?

    <a href=”https://www.nicenspicy.co.za/wp-content/uploads/2018/08/Balti-Butter-Chicken-Recipe-lines.jpg”class=”popup&#8221; data-height=”600″ data-width=”480″ data-scrollbars=
    “0”>

    Plugin Author cubecolour

    (@numeeja)

    You’re using the popup to load an image rather than a page so there’s no way of adding the print link.

    The only way to achieve this would be to add the image to a new page. If your theme includes a landing page template without header/footer etc, use that. Add the print link to that page, and then you can popup that page instead of the image.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Printing of the Popup’ is closed to new replies.