• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Add a Print Button in Genesis Powered WordPress Website

By Abhishek Ghosh July 5, 2013 8:34 pm Updated on July 5, 2013

Add a Print Button in Genesis Powered WordPress Website

Advertisement

Add a Print Button in Genesis powered WordPress website in just few steps. You really need not to be a coding expert – its amazingly easy than you can think. Basically I forgot to write this trick before (someone requested via comments). Anyway, the basic logic behind to add a Print Button in Genesis powered WordPress website is nothing but using our age old HTML, Javascript etcetera tricks. In old days, it was quite common to add a Print this webpage link as basically access to Internet was a bit difficult that it is now, users needed a hard copy, may be Print Media thought to be the standard. I precisely can not recall when it has went away from 95% websites, but possibly its WordPress who indirectly abolished it. It was by default present in older forum softwares too. We published a kind of list before for offering PDF file download by using WordPress Plugin, if you want to give the PDF only option, then this guide to add a Print Button in Genesis Child Themes (or Framework itself) will not for you. All examples are not made active to avoid conflict while rendering the webpage. You can test on your own website.

 

Add a Print Button in Genesis Powered WordPress Website : The Basics

 

Almost all of us uses two important Genesis Plugins :

 

  1. Genesis – Simple Hooks (Which needs to be updated to fit with HTML5)
  2. Genesis Print Plus

 

Basically you can either use the code directly or create a custom shortcode and use via Genesis Simple Hooks plugin. All normal WordPress reference works for Genesis, as you probably know. Obviously, the Genesis Print Plus will create the automated print media CSS file and add the meta tag to header.

Advertisement

---

A bit more idea : You can actually download the CSS once, upload to CDN and delete the plugin. Obviously add the meta as normal HTML meta tag via Genesis’s main admin panel. One plugin is not used means a good amount of compute cycle is saved. Practically we never need a dynamic Print CSS. If this trick is making you dizzy, avoid this “A bit more idea” paragraph. The things will work without this paragraph.

 

Add a Print Button in Genesis Powered WordPress Website : The Coding Part

 

As you can see the line of auto generated CSS for Print :

 

Add a Print Button in Genesis Powered WordPress Website

The url is this :

 

https://thecustomizewindows.com/wp-content/plugins/genesis-printstyle-plus/css/print.min.css?ver=1.7.0

 

Its minified so it looks bad. You can make it a bit readable – obviously your website’s one, not ours. So, Genesis Print Plus is useless because actually it does 50% work from a view point but from Printer’s view point it serves all the needed work. An auto generated Print CSS actually not much really helpful – it will not help to really not print many custom things, like Ads. Basically a Print should look like a clean document. So you need to work a bit (again optional step).

rel=”print’ should work. So the link will be a normal HTML link with either no rel tag or rel=”print”. Please check the updates in Microformat’s Wiki. Now, what are the options for us…

 

Javascript :

 

Basically including this Javascript is enough. Your href will be this :

 

Vim
1
<span style="color: #800000;">javascript</span>:<span style="color: #ff00ff;">window</span>.print<span style="color: #008000;">()</span>

 

So, the complete code will be :

 

 

This will give you exactly this thing :

 

Print This!

As it is a plain HTML, you can include an image, customize with CSS etc.

HTML and Javascript :
 

We can use the form and on click event :


This is the source code for the above thing :

Javascript plus HTML5 :

 

schema.org has no spec still now for Blog plus Print at the time of writing. It has print properties only for News Article. So we need no itemprop markup.
 

Its obvious that you can use form action for HTML5 too. You can create a small animation and other things which HTML5 supports.

 

Abhishek-GhoshTagged With how to add a print button to a website on wordpress
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Add a Print Button in Genesis Powered WordPress Website

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Steps To Install Nginx Plus on Ubuntu Server (HP Cloud)

    Here Are the Steps To Install Nginx Plus on Ubuntu Server Running on HP Cloud. Nginx Plus is the Paid Version of Nginx with Extra Features.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy