Support » Plugin: Print-O-Matic » Putting print-me button on every page/Long code available?

  • Resolved srfrmac87



    I was wondering how I could go about implementing a [print-me] button on the top of every page. I was hoping to go in and update one of the theme’s php files to accommodate this.

    To make a long story short. Website is rather small, only a couple of pages. I have one page, and my blog “news feed”/post page (not set as static front page in wordpress). The news feed has about five to seven line summary, then after clicking into article, each post has about a page or two of information.

    I was hoping to implement print-o-matic on my website. I want to have it set up so when your on the blog news feed, there is one print icon in the upper right hand corner of the page (right aligned/inline with title), to print the content of the page. It will allow users can print the news feed(the 5 to 7 line summary of each article). Then when the user clicks on the article, the single article will appear and the print icon will still be in the upper right hand corner (only prints this one post).

    I was wondering if there was long code/php function that could be added to the header.php (or page.php, or single.php) to accommodate this through your plugin. I tried looking through the source, but was not sure which function would be the appropriate one to try and call.

    Thank you for your help!

Viewing 1 replies (of 1 total)
  • Plugin Author Baden


    You would need to use do_shortcode something like:

    <?php echo do_shortcode('[print-me]'); ?>

    Be sure to assign the correct target, for example if you want to target a div element with the class ‘entry-content’ then you would set the target to .entry-content in the plugin’s option page.

    For more help, you will need to provide a link to your page.

Viewing 1 replies (of 1 total)
  • The topic ‘Putting print-me button on every page/Long code available?’ is closed to new replies.