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

    (@johncadams)

    I did notice that the print button image happens to have a data-pin-url attribute referencing the archive page. Did you add this or possibly a Pinterest plug-in? If you disable it does the proper CleanPrint behavior return?

    Thread Starter kaedues

    (@kaedues)

    So, we are using the Pinterest “Pin It” Button Pro and when I disable that, this is what the anchor and img code looks like:
    <a href="." onclick="WpCpCleanPrintPrintHtml('post-33741');return false" title="Print page" class="cleanprint-exclude"><img src="https://www.onegoodthingbyjillee.com/wp-content/plugins/cleanprint-lt/images/CleanPrintBtn_white.png"></a>

    Then, when it is active, it looks like this:
    <img class="pib-hover-img" src="https://www.onegoodthingbyjillee.com/wp-content/plugins/cleanprint-lt/images/CleanPrintBtn_white.png" data-pin-url="https://www.onegoodthingbyjillee.com/2014/11/simple-homemade-chest-rub.html">

    So it is definitely appending a data-pin-url attribute, but I’m seeing it reference the actual post. However when I hover over the CleanPrint button, the link is pointing to the archive page.

    It only recently started doing this and was working just fine previously, so I’m not exactly sure the issue. We hadn’t made any changes to the site that I’m aware of.

    Plugin Author johncadams

    (@johncadams)

    The CleanPrint button anchor and image look correct (sans data-pin-url). I noticed when you press the button the CleanPrint function isn’t engaged. I’m guesing something with Pinterest is hijacking our onclick handler and redirecting to the data-pin-url.

    Ignore the hover as in the anchor the href is “.” thus the different URL.

    When you disable the Pinterest plugin and press the CleanPrint button what happens?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CleanPrint Link Only Goes To Year and Month Archive Page’ is closed to new replies.