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 #2146456
Print this recipe button
Closed

Comments

  • berams started the conversation

    I would like to have Print this recipe button also on the top of the post but I would like it to print only the recipe card and not entire post.  Basically I would like a duplicate of the Print button that is on the recipe card but on the top of the post. How can I achieve this?

  •  2,699
    PenciDesign replied

    Hi,

    Unfortunately, currently this theme doesn't support for display that button at the top of post.

    We will consider to add more this feature in the future updates.


    Best Regards,

    PenciDesign

  • berams replied

    I realize that the plugin doesn't support this. However I am pretty familiar with Wordpress codex and PHP/HTML/CSS. Could you just direct me what code to copy and from where and I will do it myself by hand. Also I would like to add Pin this recipe button next to the Print this recipe button on the recipe card. can you direct me to the file where I can add this code?

  •  2,699
    PenciDesign replied

    Hi,

    1/ To do that, you need to copy HTML for Print Recipe:

    <a href="#" class="penci-recipe-print" data-print="<?php echo plugin_dir_url( __FILE__ ) . 'print.css?ver=2.2'; ?>"><i class="fa fa-print"></i> <?php if( get_theme_mod( 'penci_recipe_print_text' ) ) { echo do_shortcode( get_theme_mod( 'penci_recipe_print_text' ) ); } else { esc_html_e( 'Print This', 'soledad' ); } ?></a>
    

    And change this code:

    <?php echo plugin_dir_url( __FILE__ ) . 'print.css?ver=2.2'; ?>
    

    from above code to the link:

    http://yourdomain.com/wp-content/plugins/penci-recipe/inc/print.css?ver=2.2 

    And paste it to inside soledad/content-single.php file - where you want to make Print Recipe appears.

    When you done, open soledad/wp-content/plugins/penci-recipe/js/print.js  file and change this code:

    var divContents = jQuery(this).parent().parent().parent().parent().html() +
    

    to:

    var divContents = jQuery('.wrapper-penci-recipe').html() +

    Done, Clear all the cache before check it again.

    2/ For Pin a recipe, you should search on google for more how to do that. We didn't know about a feature like that, so we don't know about this.

    Best Regards,

    PenciDesign

  • berams replied

    For Pin a recipe, I realize this. Could you just direct me to the file that contains Print this recipe button? I will add the code myself.

  •  2,699
    PenciDesign replied

    Hi,

    You can check it via soledad/wp-content/plugins/penci-recipe/inc/shortcodes.php


    Best Regards,

    PenciDesign