• 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-Ghosh Tagged With how to add a print button to a website on wordpress

This Article Has Been Shared 154 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • Cloud Computing : Your Concerns and Thoughts of Richard Stallman

    Cloud Computing as terminology raises the eyebrows of some users who are associated with academics and computing for many years. Let us discuss on the topic.

  • Facebook Embedded Posts for WordPress Guide

    Facebook Embedded Posts are now available to everyone. Anyone can either manually embed the posts from or use official WordPress Plugin for precise control.

  • Syntax Highlighting : All About the Colorful Snippets

    Syntax Highlighting is a method for coloring certain words and characters in a text depending on their importance in in an piece of code or snippet.

  • Schema.org for WordPress : Advanced Tips for Genesis 2.0

    Schema.org for WordPress is nicely integrated by Genesis 2.0 but in terms of semantic complexity, it requires some advanced hand made tweaking.

  • Rackspace Cloud Server : Managed or Unmanaged To Choose?

    Rackspace Cloud Server boldly comes in two flavors apart from Rackspace Cloud Sites. Which one will suit you – Managed or Unmanaged Rackspace Cloud Server ?

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (21K Followers)
  • Twitter (5.3k 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

  • 5 Sectors That Have Undergone Revamps in Digital Landscape February 24, 2021
  • What You Can Control with a Smartwatch and ESP32 February 23, 2021
  • What Does Data Cleansing Mean? February 21, 2021
  • How to Find the Right Software for Your Company February 20, 2021
  • What is Code Refactoring? February 19, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Add a Print Button in Genesis Powered WordPress Website," in The Customize Windows, July 5, 2013, February 25, 2021, https://thecustomizewindows.com/2013/07/add-a-print-button-in-genesis-powered-wordpress-website/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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