Coupon Creator

  • Coupon Creator Pro
    • Coupon Creator Pro
    • Feature Demos
    • Premium Features
    • Release Notes
    • New Feature Suggestions
  • Support
    • Contact Support
    • Guides (Start Here)
    • Frequently Asked Questions
    • Documentation
    • Tutorials
    • Support Terms
  • Contact
  • My Account
  • 0 items

How to Add Google Fonts to Print View

Posted on 01.05.16 | brianjessee |

Knowledge Base


How to Add Google Fonts to Print View

Last Updated: 7 years ago in Customization
If your theme uses Google Font or some other custom font it will not be loaded into the print view automatically as the print view does not load the theme stylesheet.

This can be changed with a function and some css added to the Custom Coupon Styles Field.

The first step is to find the Google Font your would like to use.

This case will use Open Sans for the body font and Oswald for the H tags.

In Google Fonts look for the standard embded code for each font and using this hook it will load in the print view:

/*
*	Coupon Creator - Add Google Fonts to Print View
*	Version 2.1.2
*/
add_action('coupon_print_meta', 'cctor_google_fonts_print_view' );
function cctor_google_fonts_print_view() {
	
	echo "<link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>";
	echo "<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>";
	
}	

Adding that coding to a custom plugin or to your child theme’s function.php:

The second step is to add the css to use the fonts in the Print View.

Go to the Coupons Options Page here:

Your Admin > Coupons > Options > Display Tab > Custom Coupon Styles

Then add the following to the field:

body.print_coupon {
	font-family:'Open Sans',sans-serif;
}

.print_coupon h1,
.print_coupon h2,
.print_coupon h3,
.print_coupon h4,
.print_coupon h5,
.print_coupon h6 {
	font-family:'Oswald',sans-serif;
}

Reload your print coupon and you will see Oswald for the h tags and Open Sans for the text. You can use this with any combination of Google or any other fonts.

1 star1 star1 star1 star1 star
4.3 out of 5 stars
Downloads!

Get Started With Pro

Click to Buy Pro

What Users are Saying:


My client needed a coupon creator to add the mobile equivalent of clip-out paper coupons for their website. This Coupon Creator plugin was the best, most reliable solution that allows my client to easily make decent-to-good looking online coupons in-house with a minimum of design experience and fuss. Many other coupon plugins actually only generate coupon codes a-la RetailMeNot. This one lets you generate printable coupon-looking coupons or responsive, mobile-friendly discount coupons that users can pull up on their smartphone right there at the merchant.

— (typeadesign)

Simple Solution for My Site — First Rate Support! – A simple and useful plugin that offers a perfect solution for my website. … The videos are extremely helpful. Support from the developer was fast and very helpful…more

— Mike (msagman)

Wonderful Plugin & Top Notch Support – We purchased the pro version of this plugin after reviewing the free version for a while. The free version is great, but we needed some of the more advanced features that the pro version offered…more

— (infobeckettgraphics)

Great Support – I am using Coupon Creator fee version on two sites and love it! Easy to use and great support! Just what I was looking for.

— Kay (stahr5)

5-Star Rating All Day Long – I strongly recommend using this plugin if you EVER need a “Top Of The Line” well designed, clean coded, lightweight, easy to manage and style coupon plugin for whatever reason for your WP site….more

— Fish (fish911)

Login

  • Lost Password

Support Resources

  • Guides
  • Frequently Asked Questions
  • Documentation
  • Tutorials

Sign Up for Updates!

For the Coupon Creator Pro!

  • This field is for validation purposes and should be left unchanged.
  • Coupon Creator Pro
  • Coupon Creator
  • Guides
  • Frequently Asked Questions
  • Terms of Service
  • Privacy Policy

Copyright © 2023 Site · WordPress Web Design by Jessee Productions, LLC

7ads6x98y