• Hi!

    I feel insane. I’ve tried using the do not print attribute shortcode many times and I’m obviously doing something wrong.

    I need to exclude my footer and the top menu from printing because as you can see it’s including a whole lot of junk.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor twinpictures

    (@twinpictures)

    you feel insane? let’s fix that!
    first of all, what does your shortcode look like?
    second of all, can you share a link?
    and finally, you are probably not insane, so don’t worry too much… we’ll help you get this resolved.

    Thread Starter mediaamerica

    (@mediaamerica)

    Awesome, thanks!

    it’s for the whole website, ncsd.org. Sorry I thought I included a link.

    [print-me do_not_print=”.footer”] is what I was using for the footer specifically. When that wasn’t working, I didn’t try it for the menu bar yet.

    Plugin Contributor twinpictures

    (@twinpictures)

    Where is the print trigger?
    The print-icon in the left sidebar is not from this plugin…
    … where is the print-me shortcode placed?

    Thread Starter mediaamerica

    (@mediaamerica)

    I guess I didn’t realize I needed to do that — I’m so sorry! In the settings, what and where would I place that — I have ‘yes’ marked on the use print icon section

    Plugin Contributor twinpictures

    (@twinpictures)

    ah, ok… so the theme, or some other plugin (dpsp) is creating the left side panel with its own print icon. there might be a way to filter the default print function but that would be beyond this community support.

    Are you able to add custom items to this side-tab?

    Thread Starter mediaamerica

    (@mediaamerica)

    I can’t but I can disable the print part of the plugin (it’s the Grow by Mediavine plugin) or I can do away with it all together as the printing is more important than that sidebar.

    Plugin Contributor twinpictures

    (@twinpictures)

    Regardless, you will need to place the [print-me] shortcode someplace on the page to test that it does what you need it to. Try placing it on a post or page and go from there.

    Thread Starter mediaamerica

    (@mediaamerica)

    I’m back! Okay, so I did kind of figure it out…

    I’ve implemented on this page and it works: https://ncsd.org/a-message-from-the-national-cancer-institute-2020

    However, I think where I was getting confused is adjusting the settings where I don’t have to put in the shortcode for every single page/post…that’s where I seem to be not putting in the correct thing?

    Any insight?

    Plugin Contributor twinpictures

    (@twinpictures)

    step by step!

    adjusting the settings where I don’t have to put in the shortcode for every single page/post

    There is not a setting to automatically include the print icon after every post or page. However, the shortcode can be easily included in this way using one of the following methods:

    1. modify the child-theme single.php to include the shortcode using WordPress’ built in do_shortcode() function.
    2. add a filter to the child-theme function.php to automatically append the print-me shortcode after each post or page.

    If either of these solutions are a bit beyond your comfort zone, and you do not have a developer to assist you, then consider going pro as it comes with a very high level of personal support that is alone worth the upgrade, even getting the above setup on your site.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Using do not print attribute’ is closed to new replies.