Print post
-
Hi all
About the “build in†print function in Graphene, I cannot get it to work the way I want.
Example: print specific post,
only the articles, not the hole website.
and bigger letters.
Therefore I have used the plug-in “print me” which is very simply to use.
Is it possible, using graphene aktionhooks to insert the Short code: [printme] on the post that I want?
If yes, how do I do it? 😉
I have tried, but failed : /
I know how to insert [printme] in the actionhooks, but the function print, does not appear, and work! It only shows the letters [printme] ?
I know I can insert Short code manually on every post 🙂 But…..
Thank you in advance
Best regards
Oliver
Mod
If you are handy with CSS, you can design your own print stylesheet. Place that file in your child theme file and then add this to your child theme’s functions.php file:
add_action ('wp_head', 'printstyle' );
function printstyle() {
echo "<link rel='stylesheet' href='print.css' type='text/css' media='print' />";
}Quote:Example: print specific post,only the articles, not the hole website.
and bigger letters.
I’m not sure what you mean here.
Put code in between backtick (
Code:`) characters. It’s usually located above the Tab key on your keyboard.
Is it possible to be more specific, in how to do?
I have look at this guide
I think Ken’s way is the best way to do it. Yes, you can enter his code in the Child Theme functions.php
You need to create a separate print CSS with his code….
add_action ('wp_head', 'printstyle' );
function printstyle() {
echo "<link rel='stylesheet' href='YOUR_PRINT.CSS' type='text/css' media='print' />";
}The YOUR_PRINT.CSS will be the location of your new print CSS file.
Is this make it clear for you?
There are more things you can do with CSS like, http://sanuja.com/blog/optimizing-print-friendly-version , which is hiding the print button from specific pages.
You can hide the print button in many ways. Also, I cannot seems to load your website from here (Canada).
Note: Ken, can I steal your code and added to my how to style Graphene print article?
Mod
Quote:Note: Ken, can I steal your code and added to my how to style Graphene print article?Of course.
Quote:Note: Ken, can I steal your code and added to my how to style Graphene print article?Of course.
Thank you. You seems to use http://blog.kjodle.net/ a lot more than your main site. So, I gave credits with the link to http://blog.kjodle.net/
If you would like to change it to your main site instead, please let me know. Thank you again. 🙂
Mod
If it helps you out any, you can see my print stylesheet here:
http://blog.kjodle.net/wp-content/themes/graphene-stonesinwater/print.css
You can view the entire contents of my child theme here:
http://blog.kjodle.net/wp-content/themes/graphene-stonesinwater/
Viewing 10 posts - 1 through 10 (of 15 total)
- 1
- 2
- You must be logged in to reply to this topic.
