Support » Plugin: Boo Recipes » Print Button Option

  • Resolved Bonjovicrzy41

    (@bonjovicrzy41)


    Hello
    New to the plugin putting this on my sister’s blog she wants to know is there a print button option if not is there css or a functions code to add it I looked on the controls did not see it

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author BooSpot

    (@boospot)

    Hi @bonjovicrzy41,

    If you know a little coding, you may add the following script to your theme or child theme’s functions.php file:

    function bonjovicrzy41_add_print_button(){
    	echo do_shortcode( "[boorecipe_print_button align='left']");
    }
    
    add_action('boorecipe_single_media_before' , 'bonjovicrzy41_add_print_button' );

    notice the align='left' part, you may use ‘left’ or ‘right’ or ‘center’ as per your requirements,

    Also notice the 'boorecipe_single_media_before' part, this controls the placement of the print button, there are a number of options available to control this placement, the complete list of available action points are defined here:
    https://plugins.trac.wordpress.org/browser/boo-recipes/trunk/help/hooks-explained.php

    For example, if you want to show print button before the Meta section (category/time section), then use may replace the 'boorecipe_single_media_before' with 'boorecipe_single_meta_before' in the add_action('boorecipe_single_media_before' , 'bonjovicrzy41_add_print_button' ); line of above code.

    I hope it helps,

    If you think this feature may be required by others as well, i can add the option in the plugin settings. Just let me know i shall update the plugin code.

    Thread Starter Bonjovicrzy41

    (@bonjovicrzy41)

    thank you so much yes it will be used by others not just me. So I need the code adjusted please.. for all members of the blog to use if possible . Because this is going on sister in law’s blog not mine .. and it will be Her and 5-8 others posting she is going to have her 4 sisters and daughters & myself posting recipes along with her . Is there a way to have for all members of the blog to be able to have a print button or use a print button and I will be going by Bev on the blog instead of Bonjovicrzy41.. sorry to be any trouble .. Thank you so much

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Print Button Option’ is closed to new replies.