WordPress.org

Ready to get started?Download WordPress

Forums

Coupon Creator
[resolved] Styling the Print View (4 posts)

  1. blakef
    Member
    Posted 6 months ago #

    First of all, this plugin is almost exactly what I/my client needed (minus responsiveness and a few minor things) so thanks!

    Through CSS I was able to change/override the h3 and content sizes to what I need but when the print window comes up it is not styled correctly and everything is much too large.

    I see that there is a .print class before everything and when using Firebug I can change it all perfectly. However, when I put it in my CSS, and even when I use !important, it doesn't want to override your default styles.

    What am I doing wrong?

    Thanks!

    https://wordpress.org/plugins/coupon-creator/

  2. Brian
    Member
    Plugin Author

    Posted 6 months ago #

    I am not sure, that is not enough information of where you are putting the css changes to know why it is not working.

  3. rbergeron81
    Member
    Posted 5 months ago #

    I am having the same problem.

    I am adding my styles to my child themes stylesheet.

    Like this:

    @media print {
    
    	.print_coupon .cctor_coupon_content h3 {
    		font-size:60px;
    	}
    
    	.print_coupon .cctor_coupon_content {
    		background:url(images/RiverCityServicesLogoCoupon.png) 0 bottom no-repeat !important;
    		position:relative !important;
    		z-index:9999 !important;
    	}
    }

    Have tried it in a few different browsers. The print styles work when I just try to print a page like this:

    http://rivercity.hay-wire.com/coupons/

    But when I use the "click to open in print view" link on an individual coupon, the print styles are not being used.

    Also, I would prefer not to edit the plugin files because then when the client updates it, the changes will be overwritten.

    Any help on this would be much appreciated.

    Thanks

  4. Brian
    Member
    Plugin Author

    Posted 5 months ago #

    The Print Template does not call a themes stylesheet.

    So that would be why it is not working.

    I did that because otherwise every theme would overwrite the print layout creating more problems.

    I will look into adding a method to add custom css to the print template, but for now it has to be manually added to the coupon creator stylesheet.

Reply

You must log in to post.

About this Plugin

About this Topic