Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Baden

    (@baden03)

    printing background colors can be toggled on/off in the print-dialogue box of your browser. There is a checkbox for something like ‘Print background images and colors’

    Thread Starter cmisak

    (@cmisak)

    Couple part question/comment all related to backgrounds. Sorry a bit long.

    Maybe be an easy “no” but I have a class with a background image that is built dynamically. Curious if there is a way to FORCE the background images to display? And/Or could you process short codes in the HTML blocks? I’ve modified the core files… but I don’t like doing this.

    $this->add_print_script[$id] = array(
    							'pom_site_css' => $pom_site_css,
    							'pom_custom_css' => $pom_custom_css,
    							'pom_html_top' => do_shortcode($pom_html_top),
    							'pom_html_bottom' => $pom_html_bottom,
    							'pom_do_not_print' => $pom_do_not_print,
    							'pom_pause_time' => $pause_before_print
    						);

    Also I was curious if you could add a custom path for a CSS file? I also had to modify the core files to capture my dynamic style sheet that’s built for each store’s settings.

    $pom_site_css = get_stylesheet_directory_uri(). '/static/style.css';

    Thanks great plugin!

    Plugin Author Baden

    (@baden03)

    1. force background images to display
    To have them DISPLAY is possible, you just need to make sure the HTML structure and CSS are included on the print page. To force them to PRINT is managed by the print dialogue box, and this must be checked by the user.

    2. HTML top/bottom able to process shortcodes.
    Good call. We have added this to the next version, however we opted to use the_content filter rather than do_shortcode. Still it will achieve the same results. Let us know if this works for you.

    3. Custom URL for CSS file.
    This is a feature that is already offered in Print-Pro-Matic

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Background Color’ is closed to new replies.