Title: Overriding CSS?
Last modified: August 20, 2016

---

# Overriding CSS?

 *  Resolved [lifeundersun](https://wordpress.org/support/users/lifeundersun/)
 * (@lifeundersun)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/overriding-css/)
 * Hi guys,
 * Thanks for this plugin. I’m having trouble using it as the CSS seems to be pulled
   in via your CDN and it’s overriding my client’s stylesheets. They can’t have 
   the font-families different on the PDF page than on the original page. Might 
   you be aware of a way to prevent the plugin’s CSS overriding the font families
   of the printed page? I could probably hack the plugin if not, but this would 
   be a good feature for enterprise deployment.
 * Thanks.
 * [http://wordpress.org/extend/plugins/printfriendly/](http://wordpress.org/extend/plugins/printfriendly/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Print & PDF by PrintFriendly](https://wordpress.org/support/users/printfriendly/)
 * (@printfriendly)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/overriding-css/#post-3248104)
 * Yes, this is possible. We haven’t integrated into the plugin, but if you are 
   comfortable editing your WordPress template you can add the button code direct.
 * Get the standard website [Print Friendly button code](http://www.printfriendly.com/button)
   at [http://www.printfriendly.com/button](http://www.printfriendly.com/button)
 * – You’ll see an option for Custom CSS URL. [Screenshot of options](http://img.am/t//pfcode-20121210-201947.png).
 * [Add the code directly to your template](http://img.am/t//wp-template-20121210-202158.png)(
   single.php). Place above or below `<div class="entry">`
 *  [mweeks@cruzio.com](https://wordpress.org/support/users/mweekscruziocom/)
 * (@mweekscruziocom)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/overriding-css/#post-3248129)
 * I am using the latest version of your plugin but pulling in the custom css is
   not working for me. I am putting the code in a widget.
 *  Plugin Author [Print & PDF by PrintFriendly](https://wordpress.org/support/users/printfriendly/)
 * (@printfriendly)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/overriding-css/#post-3248140)
 * [mweeks@cruzio.com](https://wordpress.org/support/topic/overriding-css/mweeks@cruzio.com?output_format=md)
 * What’s the URL to your CSS file? I’m wondering if it’s not an accessible file.
 *  [kathrinh](https://wordpress.org/support/users/kathrinh/)
 * (@kathrinh)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/overriding-css/#post-3248159)
 * hi. great plugin!
 * I have the same problem: my custom css file is not accepted by the plugin (latest
   version). I’m running wordpress blog on own server.
 * Display button on: “Add directly to template” selected. Button added to sidebar
   by putting php code into Enhanded Text widget (another plugin).
 * URL to custom css added in relevant field. I checked for accessibility of the
   file (i.e. public dropbox folder).
 * Also tried to use the html button code from printfriendly.com with css url included.
   No success.
 * I noticed that wit IE the Image style: align left is not working, but it is with
   Firefox. That’s a different problem though, that I hope to change with the custom
   css anyway.
 * Any idea what could solve my problem? Thanks!
 *  Plugin Author [Print & PDF by PrintFriendly](https://wordpress.org/support/users/printfriendly/)
 * (@printfriendly)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/overriding-css/#post-3248160)
 * Thanks. I’ll take a look, could you let me know the URL of a page I can observe
   the problem?
 *  [kathrinh](https://wordpress.org/support/users/kathrinh/)
 * (@kathrinh)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/overriding-css/#post-3248161)
 * Thanks a lot.
 * This is the URL: [http://www.pointout-trainings.com/bike-training/](http://www.pointout-trainings.com/bike-training/)
   
   and this the css: [https://dl.dropboxusercontent.com/u/30443092/printfriendly.css](https://dl.dropboxusercontent.com/u/30443092/printfriendly.css)(
   just the example file that I try to get accepted by the plugin)
 * I have tried with and without the .class
 * I also tried different css as my main aim is to align the thumbnail-box-images
   in the print version the same way as on the site. (I already managed to do it
   for the browser build-in print function)
 * might just be s stupid mistake? I am not a programming expert at all 🙁
 *  Plugin Author [Print & PDF by PrintFriendly](https://wordpress.org/support/users/printfriendly/)
 * (@printfriendly)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/overriding-css/#post-3248162)
 * The cascade order is opposite. Try…
 *     ```
       #printfriendly .entry-content {
           font-family: Arial;
           font-size: 50px;
       }
   
        #printfriendly h1 {
       //or you could do #pf-title{
           color: Red;
       }
       ```
   
 *  [kathrinh](https://wordpress.org/support/users/kathrinh/)
 * (@kathrinh)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/overriding-css/#post-3248163)
 * Thanks a lot for your support!
    It’s working. Managed to align images.
 * Just for info: not sure if it was still a file access problem, as I am now using
   exactly same code, as when I tried for the first time, not using the #printfriendly
   selector at all.
 * Printfriendly is a great plugin.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Overriding CSS?’ is closed to new replies.

 * ![](https://ps.w.org/printfriendly/assets/icon-256x256.png?rev=2951152)
 * [Print, PDF, Email by PrintFriendly](https://wordpress.org/plugins/printfriendly/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/printfriendly/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/printfriendly/)
 * [Active Topics](https://wordpress.org/support/plugin/printfriendly/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/printfriendly/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/printfriendly/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [kathrinh](https://wordpress.org/support/users/kathrinh/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/overriding-css/#post-3248163)
 * Status: resolved