• Resolved Back to Front

    (@traverser11)


    Hey this plugin is working perfectly out-of-the-box on my home page and single posts.

    I can’t get it working on this page though…
    https://housingoptions.backtofrontdesign.co/todo/
    With this shortcode
    [print-me target="#results" do_not_print=".noprint" title="Print this list"]
    <div class="printomatictext " id="id9856" alt="Print this list" title="Print this list" data-print_target="#results">Print this list</div>

    Clicking the printomatic div doesn’t trigger any event.
    I can see that the printomat.js file is loaded on this page.
    There is a div with the id of #results to be printed…
    I’ve tried with different targets and configurations, with the dashboard scripts on and off. The only difference I can think of between the pages is the /todo page was set to private. Its currently set to public though.

    Here is a page where it does work as desired
    https://housingoptions.backtofrontdesign.co/

    Any hot tips or troubleshooting ideas? I must be missing something obvious?

    Thanks so much for this plugin and support, its really invaluable for helping low income older people use the internet to be able to print searches for them!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Back to Front

    (@traverser11)

    I found that removing this jQuery snippet from an included file fixes the problem.

    
    // Limit Google maps search to Australia
    jQuery(".js-toolset-maps-distance-center").geocomplete({country: 'AU',type: []});
    
    

    Thats seems really weird to me, especially cause that script is included on every page. I guess I can only enqueue it on the required pages, or not include it on /todo page.

    Any other solutions are welcome though!

    Plugin Contributor twinpictures

    (@twinpictures)

    it could be that that jQuery code was throwing an error?

    Thread Starter Back to Front

    (@traverser11)

    There isn’t any error logged in the console when that script is run, and does the thing that its supposed to do.

    But that script isn’t required on that specific page, so its a working solution, despite my buggy coding!

    Anyways thanks the plugin works really nice otherwise.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not printing on specific page’ is closed to new replies.