PenciDesign replied
Hi,
\This is not easy feature and It's take long time to do. So, we just can tried our best to recommend for you some solution, we don't supports for do requirements like this.
\Best Regards,
\PenciDesign
Hi, i just posted my suggestion for other people who maybe need some button. So everybody kann fix the problem if they try the plugin wp-print. ;-)
I think is in your interests to made customers happy or?
Best Regards
No, because, no time. :-(
1/ I create a new folder in Child-Theme > inc with the name "print-button". There put it a file names print-button.php.
\
<?php\
function ah_print_button() {\
?> \
<span class="druckversion">\
<a class="drucken" href="javascript:window.print()"> Artikel drucken</a> \
</span>\
<?php }-->\
2/I create a print.css and put it in the folder child-theme
/**\ * Print Stylesheet fuer WIR\ * @version 1.0\ * @lastmodified 19.09.2017\ */\ @media print {\ \ @page { \ margin: 2cm;\ size: A4; }\ #content, #page, #main {\ margin:0; \ float:none; \ width:auto;\ }\ #header{margin:0;}\ \ }\
3/ In the Functions i load the print-button.php and the print.css with media print just for sites and post
\
<?php\
/*\
Soledad child theme functions and definitions\
*/\
function penci_soledad_child_scripts() {\
wp_enqueue_style( 'penci-soledad-parent-style', get_template_directory_uri(). '/style.css' );\
if( is_single() ) {\
wp_enqueue_style( 'penci-soledad-child-style', get_stylesheet_directory_uri(). '/print.css',array(),'20130821','print');\
} \
if( is_page() ) {\
wp_enqueue_style( 'penci-soledad-child-style', get_stylesheet_directory_uri(). '/print.css',array(),'20130821','print');\
}\
}\
add_action( 'wp_enqueue_scripts', 'penci_soledad_child_scripts' );\
/*\
* All custom functions go here\
*/\
include( trailingslashit( get_stylesheet_directory() ). 'inc/widgets/lastest_post_widget2.php' );\
include( trailingslashit( get_stylesheet_directory() ). 'inc/print-button/print-button.php' );-->\
4/ I put these code in the place where i wanted to have the print button. In my case: content-single.php and content-page.php
i copy these php files from parent theme in the same root directory for child-theme and implement the code below where below
\ <div class="tags-share-box center-box"></div>\
Thes code print the button everywhere you want on your site.
\ <?php ah_print_button();?>
Thanks for your support and regards!
Thanks for the Info!
I have made my own print-button.php
These Plugin docent work with your theme: https://wordpress.org/plugins/wp-print/
Where can i find these section or php file, for the posts and sites?
Thanks and Regards
Has Soledad Magazin a print button that i can put in the posts?
Like: "print these Post"
Thanks
Want to join this conversation or access attachments? Sign in first.
Open your ticket archive, review validated licenses, and continue product support conversations from one customer portal.