• Resolved ipraveen

    (@ipraveen)


    Hi,

    I wish to insert the plugin in Formcraft form page in the custom text field. However it does not accept shortcodes. Can you please tell me what is the html code equivalent of the shortcode including the target part? So that when I put html, the print button appears with the functionality?

    Thanks

    https://www.ads-software.com/plugins/print-o-matic/

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

    (@baden03)

    it can be done, but you need to include a shortcode (someplace) on the page to embed the required javascript. Can you provide a link to your page so we can provide clear instruction?

    Thread Starter ipraveen

    (@ipraveen)

    The URL is https://thefirstbazaar.net

    In the 3rd section towards the end you will a see a row that has an email input box, email me button and the print button. Since the button could not be put as a shortcode, the button was put in another page and that page bought in as an iframe. However I forgot that the print function will only work on that page where originally the button is and not in the iframe. I can put the button below the email button (outside the form) but I need it aligned with the email row and hence need to put in the form.

    Plugin Author Baden

    (@baden03)

    I think there is an easier fix for your issue. The code that is bing output is as follows:

    <code >[print-me <font class="highlight">target="body"</font>]</code>

    This means you most likely copy/ pasted the code into a textbox element while in visual mode. Try viewing the shortcode in text or code mode and remove all the extra html that is rendering the code, rather than processing it.

    Thread Starter ipraveen

    (@ipraveen)

    Hi, Thanks for the reply. Actually there is no code put. Like I said the print me button is on this page: thefirstbazaar.net/print. That is being called as an iframe in the form <iframe srce="thefirstbazaar.net/print...> without any scroll bars. This is because I cannot put a shortcode in the visual editor mode or any mode in the form (it does not accept any shortcodes).

    I could have put the print button simply below the email button in another row which is not the form but just part of the page. But my requirement is that the print button should align with the email button and hence has to be part of the form itself.

    Now since I cannot put the shortcode in the form, the other way is to put the html code equivalent of the shortcode (since the form accepts html).

    Plugin Author Baden

    (@baden03)

    ok, then try this the external print-trigger method

    Thread Starter ipraveen

    (@ipraveen)

    I tried that before raising this question! For some reason the button does not show and just text comes up and it is not clickable!

    Thread Starter ipraveen

    (@ipraveen)

    I would think a simpler option would be define the target in the shortcode that would include the URL of another page: like target=”https://thefirstbazaar.net/#selector&#8221; or is this not possible?

    Plugin Author Baden

    (@baden03)

    which version of the plugin do you have installed?
    try version 1.7.3c

    Thread Starter ipraveen

    (@ipraveen)

    Hi, I installed the 1.7.3c but it is the same ??

    Plugin Author Baden

    (@baden03)

    the data-print_target should be a class or id selector of an element on the page, not a full url. As you can see the trigger is now launching a print window… you just need to give it the correct element you want printed.

    You are almost there!
    if you want to print the div with an ID of selector, then just use #selector

    Thread Starter ipraveen

    (@ipraveen)

    I am sorry. I think you are clicking the Printer Icon. That like I said is an iframe of a page thefirstbazaar.net/print. Please try to click on the text below which says Print Trigger.

    Plugin Author Baden

    (@baden03)

    The output of ‘print trigger is as follows:

    <span>Print Trigger</span>

    Please post the code you are using for this.

    Also, the output of the printer icon is as follows:

    <div class="printomatic pom-default " id="id494" data-print_target="https://thefirstbazaar.net/#selector"></div>

    Do you want to have two print triggers or just one? Do you want the print trigger to be text, or an icon?

    Thread Starter ipraveen

    (@ipraveen)

    The code for `<span>Print Trigger</span>’ is as follows:

    ‘<button id=”my_print_button” class=”printomatic” data-print_target=”#print_me_please”>Print Trigger</button>` – but after saving the form the entire thing just disappears. I am puzzled – other html like iframe is showing up but not this html. I have written to the plugin admin also. Will let you know where the issue is.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘HTML equivalent of shortcode’ is closed to new replies.