• 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 163 Times!

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

  • 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

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

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

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, January 31, 2023, https://thecustomizewindows.com/2013/07/add-a-print-button-in-genesis-powered-wordpress-website/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT