WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Undefined

[Resolved] Undefined

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Baden

    @baden03

    what shortcode are you using?
    You need to tell the shortcode what element to print (in your case the div with an ID of content) by assigning the target attribute like so:

    [print-me target="#content"]

    Awesome, thank you for your assistance. Works now!

    Would you mind one more question?
    I’ve used print-o-matic with the suggestion you made above on this page: http://www.playaulait.com/preschool-prep-registration-2/

    It unfortunately includes “like us on facebook” etc… at the bottom of the printed page.

    I assume i need to change the target from “#content” to something else, but i’m having a hard time figuring that out.

    thank you….

    I’ve also tried target=”body” but that prints too much of the other items on the page.

    I just want to print the registration form from the url i referenced above. I’m just not sure where to search for other types of variables to try.

    Thx!

    Plugin Author Baden

    @baden03

    You have three choices:
    ID:
    Look for id=”your_id” in the element you want to print in the source HTML of your page.
    target="#your_id"

    CLASS:
    Look for class=”your_class” in the element you want to print in the source HTML of your page.
    target=".your_class"

    ELEMENT
    Look for <your_element>…</your_element> you want to print in the source HTML of your page.
    target="your_element"

    If you provided more detail on exactly what you wanted to print, we could be of further assistance.

    Sir Baden, I have a related problem. After clicking on the printer icon, a new page is created with all the elements that I wanted to be printed. However, it does not automatically open the printer window. How do I resolve this?

    Plugin Author Baden

    @baden03

    Derpot, do you have a link for us?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Undefined’ is closed to new replies.