Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1307533
Is a Print function with soledad integrated?
Closed

Comments

  • codeupdates started the conversation

    Has Soledad Magazin a print button that i can put in the posts?

    Like: "print these Post"


    Thanks

  •  2,699
  • codeupdates replied

    Where can i find these section or php file, for the posts and sites?

    Thanks and Regards

  •  2,699
    PenciDesign replied

    Hi,


    You can see that in soledad/content-single.php file.


    Best Regards,

    PenciDesign

  • codeupdates replied

    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/


  •  2,699
    PenciDesign replied

    Hi,


    Do you try all plugins I sent? If any plugin doesn't work, deactivate it and try with other plugin.


    Best Regards,

    PenciDesign

  • codeupdates replied

    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!

  •  2,699
    PenciDesign replied

    Hi,


    First, I think you should check Envato Support Policy for all items on themeforest here

    Item support doesn't include "Item customization" - And by default, our theme doesn't support this feature.

    I just tried our best to help you do that with plugins - normal, we don't need to support you this feature.

    We didn't tried that plugins with our theme, I just suggest you tried it to make that feature. So, you need to control it for yourself.


    Best Regards,

    PenciDesign

  • codeupdates replied

    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

  •  2,699
    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