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

    (@baden03)

    are you able to assign custom classes and attributes to the buttons?

    Thread Starter gleatherman

    (@gleatherman)

    yes we can assign custom classes.

    Hi Baden, i have the same problem here. I do this http://spacedonkey.de/1019/wonky-submit-print-o-matic-button/ but doesnt work, just show empty page. Any idea? Thanks

    Plugin Author Baden

    (@baden03)

    yes. either downgrade to version to version 1.5.7 or upgrade to print-pro-matic

    Thread Starter gleatherman

    (@gleatherman)

    ok I reverted to 1.5.7 version and added both printomatic class and subprint ID to the button shortcode

    [button new_tab="no" icon_position="left" special_style="no" border_radius="0" three_d="no" size="small" color="green-sea" title="Step 1: Print Your Planner" icon="icon-print" class="printomatic" id="subprint"]
    <input id="target-subprint" type="hidden" value="#main-content" />

    then I added the Hidden Input afterwards with target id and value of #main-content. When I click on the print button, the new print page pops up but it is blank. The ‘Shortcode Loads Scripts’ checkbox is NOT checked.

    any ideas? thanks

    Plugin Author Baden

    (@baden03)

    sounds like the plugins is working, it’s just having trouble finding your taraget content. Can you share a link to the page you have this setup on?

    Thread Starter gleatherman

    (@gleatherman)

    sure. it’s http://circusjuventas.staging.wpengine.com/class-planner/

    you might need to add some classes via the class finder first: http://circusjuventas.staging.wpengine.com/classes/

    Plugin Author Baden

    (@baden03)

    OK the issue is that both the id and the class need to be assigned to the same element:
    Bad:

    <div class="printomatic">
       <a href="" class="hb-button hb-green-sea hb-small-button no-three-d" target="_self" style="-webkit-border-radius: 0px;-moz-border-radius: 0px;border-radius: 0px;" id="subprint">
          <i class="icon-print"></i>
          Step 1: Print Your Planner
       </a>
    </div>
    <input id="target-subprint" type="hidden" value="#main-content">

    Good:

    <div id="subprint" class="printomatic">
       <a href="" class="hb-button hb-green-sea hb-small-button no-three-d" target="_self" style="-webkit-border-radius: 0px;-moz-border-radius: 0px;border-radius: 0px;">
          <i class="icon-print"></i>
          Step 1: Print Your Planner
       </a>
    </div>
    <input id="target-subprint" type="hidden" value="#main-content">

    Thread Starter gleatherman

    (@gleatherman)

    ok, the ID is added to the same DIV element as class=”printomatic”.

    <div  id="subprint" class="printomatic"><a href="" class="hb-button hb-green-sea hb-small-button no-three-d" target="_self" style="-webkit-border-radius: 0px;-moz-border-radius: 0px;border-radius: 0px;">
    <i class="icon-print"></i>Step 1: Print Your Planner</a></div>
    <br />
    <input id="target-subprint" type="hidden" value="#main-content" /></p>

    Still no joy. 🙁

    Plugin Author Baden

    (@baden03)

    @gleatherman: it could be there is an issue with the minus (-) in your target element’s name, it’s hard to say, as it’s an older version of Print-pro-matic. Tell you what, hit us up at info [at] twinpictures [dot] de with a link to this thread. If you like, we’ll pop on your site real quick and see if it’s IS possible to integrate 1.5.7 in this way. We’ll do our best to bring the joy back.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Add print-o-matic function to theme's button’ is closed to new replies.