Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
WordPress 3.0 jQuery
WordPress 3.0 jQuery

WordPress 3.0 jQuery: Enhance your WordPress website with the captivating effects of jQuery.

eBook
NZ$51.99 NZ$57.99
Paperback
NZ$71.99
Subscription
Free Trial

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

WordPress 3.0 jQuery

Chapter 2. Working with jQuery in WordPress

Now that we understand the basics of jQuery and WordPress and have a little background on how they'll interact with each other, we're now ready to take a look at using jQuery to dynamically enhance a WordPress installation. We'll start with getting jQuery included in WordPress and end up with our first cool project: Expanding and collapsing content. This is only the beginning of the jQuery possibilities in store for your WordPress site! Again, we'll be using WordPress 3.0 in this title and the new default Twenty Ten theme with jQuery 1.4.2, but rest assured that if your site or project is still using WordPress 2.9, these jQuery techniques will work just fine.

In this chapter, we'll cover the following topics:

  • Registering jQuery in WordPress

  • Using Google's CDN to include jQuery

  • Reviewing all of jQuery's "secret weapons"

  • Our first jQuery and WordPress enhancement

Getting jQuery into WordPress


jQuery can be included into WordPress in three different ways as follows:

  • You can download it from jQuery.com, and include it directly with a script tag into your XHTML header tags, inside your theme's header.php file (this method works, but is not really recommended for a variety of reasons)

  • You can register WordPress' bundled jQuery in themes and plugins

  • You can also take advantage of Google's CDN (Code Distribution Network) to register and include jQuery into your theme and plugins

We covered the basics of the first method in Chapter 1, Getting Started: WordPress and jQuery. WordPress is so flexible that any user with the right admin level can come along and update, enhance the theme, or install additional plugins which may also use a version of jQuery or other JavaScript libraries. Therefore, including jQuery or any JavaScripts directly into the theme with hardcoded script tags is not recommended as it could cause conflicts with other scripts and libraries...

Keeping conflicts out!


Because WordPress and jQuery are anticipating other libraries to be loaded which may use the short variable, $. The wp_enqueue_script ensures jQuery is loaded up in noConflict mode. Therefore, you'll also need to make sure to write your custom jQuery code in noConflict mode's syntax. The easiest way to do this is to replace the $ variable (common in many jQuery scripts) with the full jQuery variable, as I've discussed in Chapter 1, Getting Started: WordPress and jQuery, and done in my two previous samples.

Setting your own jQuery variable

If you find the jQuery variable tedious to write out, yet want to remain in noConflict mode, you can replace the standard $ variable to any variable you want as follows:

<script type="text/javascript">
var $jq = jQuery.noConflict();
$jq(document).ready(function() {
$jq("p").click(function() {
alert("Hello world!");
});
});
</script>

But I really want to use the $ variable!

You should not use the $ variable for jQuery within...

Launching a jQuery script


Most of the time you'll want your script to launch and/or be available as soon as the DOM is loaded and ready. For this, you can use the standard "on document ready" technique as follows:

jQuery(document).ready(function(){
// Your jQuery script go here
});

You can reduce the previous code, just a bit, by using the following code:

jQuery(function(){
// Your jQuery script go here
});

If the jQuery variable is evoked and a function immediately passed, jQuery assumes the .ready event is implied and will run the next selection and function as soon as the DOM is loaded.

Our first WordPress and jQuery setup


I hear you. Enough talking already. Let's get jQuery rolling. The majority of this book's code and samples use WordPress 3.0 RC and the brand new default theme is "Twenty Ten". It's a great, clean, HTML5 valid theme. Even if you want to enhance an older version of WordPress, say 2.8 or 2.9, you'll be glad to know that every one of this title's scripts (or approximate versions of it) was originally written and tested in version 2.8.6 and 2.9.2 before being ported over to 3.0.

Where applicable, I'll show you alternative jQuery solutions for WordPress' 2.9.2 default theme as well as point out differences between jQuery's 1.3.2 library, which comes bundled with version 2.9.2, and jQuery's 1.4.2 library, which is bundled with WordPress version 3.0.

The point of every example is to show you not just how to enhance WordPress' default theme, but any theme, and I hope you get creative with the examples and find ways to apply them in unique ways to all sorts of WordPress...

jQuery secret weapon #1: Using selectors and filters


It is time to start having some fun with jQuery! I feel jQuery can be broken down into three core strengths, what I deem as its "secret weapons":

  • Understanding selectors and filters

  • Manipulating CSS and content

  • Working with events and effects

If you get a handle on these top three strengths, you're well on your way to being a jQuery rockstar!

This first item, understanding selectors and filters, is essential. You need to have a strong understanding of selectors and filters if you're going to be able do anything else with jQuery. The better you are at using selectors and filters, the better you'll be with jQuery period.

Selectors and filters give you the ability to (you guessed it!) select objects on your page into the jQuery wrapper object and then work with and manipulate them in just about any way you'd see fit. The selectors will allow you to easily grab an array of elements using easy CSS syntax. Filters will then further narrow down and...

jQuery secret weapon #2: Manipulating CSS and elements in the DOM


Now that we can reliably select any object our WordPress site displays on a page, let's start manipulating and enhancing our selections! We can manipulate our CSS styles which display our objects and as if that isn't cool enough, we can also manipulate the HTML objects themselves in the DOM. Let's get started with manipulating CSS.

Manipulating CSS

So far, everything that we've looked at regarding selectors and filters is essential for targeting the elements you want to affect. Now that you can select anything you want into the wrapper, let's start making stuff happen! Thanks to all of my previous examples, you're already familiar with the css() function. Mostly, you'll use this function to assign standard CSS property values, such as: background, border, padding, margins, and so on. If you can assign the property in a CSS stylesheet, you can assign it using the css() function. You can also retrieve and get CSS properties with...

jQuery secret weapon #3: Events and effects (aka: the icing on the cake)


All right, you are a selection master; you can grab anything you want from anyone's CSS and WordPress theme and you can manipulate those selections' CSS properties and attributes until the cows come home. Just from these first examples, you've probably managed to come up with your very own impressive jQuery enhancements. But wait, there's more! Let's bring it all together with events and effects.

Working with events

There are lots of events that you can handle with jQuery. You can manually bind and unbind events to elements, you can reference the unified event object, and you can use event helpers. We're going to save looking at the jQuery's unified event object until a little later in this book and for now, take a look at the most direct ways to get started with events.

Helpers are so helpful!

The helper functions, also often referred to as "shortcuts", let you easily set up events on a click or hover. You can also...

Making it all easy with statement chaining


As I've mentioned, one of jQuery's many powerful features is statement chaining, that is, stringing multiple functions together that will be performed in the order they're added to the chain (left to right) on the selected set all in one nice string of code. For example, we can change a CSS property, hide the selected elements, and fade them smoothly with one line of code:

...
jQuery(".post").css("background", "#f60").hide().fadeIn("slow");
...

For a more in-depth example of statement chaining, let's get to our first jQuery project in WordPress.

Our First Project: Expanding/collapsing WordPress posts


OK, this is a quick project, but it requires that we use a little bit of everything we just covered. I've always liked that WordPress had the <!--more-> feature to make posts "condensable" for the main post view page, but that doesn't always suit my purposes for some types of posts. Let's assume that my blog will have relatively short posts, yet I really want a reader to be able to see as many headlines as possible, above the fold, without having to scroll or scan any content (we'll suspend reality and pretend that my post headers are just unbelievably interesting and compelling).

I'd like the user to have the option to expand the post that interests him, while keeping him in the context of all the other post headlines. You've probably seen similar enhancements to this on many sites. This is a very popular jQuery enhancement for FAQ and press release posts.

Let's take a look at how we'd do that. Set up a clean custom-jquery.js...

Summary


To recap, we took a look at getting jQuery included into WordPress by registering WordPress' bundled version and by using Google's CDN. We also took a look at jQuery's top three "secret weapons":

  • Selectors and filters

  • Manipulating and changing content

  • Events and effects

After exploring the basics of jQuery within WordPress and getting a feel for how they work, you may feel like you're good to go! In many ways you are, but we're going to continue exploring WordPress and jQuery in more detail about the parts of WordPress that generate content we can enhance with jQuery: We'll look deeper into WordPress themes and plugins as well as take a look at another type of plugin, the jQuery plugin. Themes and plugins can make our WordPress development work very powerfully and flexibly across multiple sites and projects.

Left arrow icon Right arrow icon

Key benefits

  • Enhance the usability and increase visual interest in your WordPress 3.0 site with easy-to-implement jQuery techniques
  • Create advanced animations, use the UI plugin to your advantage within WordPress, and create custom jQuery plugins for your site
  • Turn your jQuery plugins into WordPress plugins and share with the world
  • Implement all of the above jQuery enhancements without ever having to make a WordPress content editor switch over into HTML view

Description

Using jQuery you can create impressive animations and interactions which are simple to understand and easy to use. WordPress is the leading publishing platform that can be customized to power any type of site you like. But when you combine the power of jQuery with WordPress—the possibilities are infinite.The combination creates a powerhouse of possibilities for generating top-notch, professional websites with great usability features and eye catching visual enhancements. This easy-to-use guide will walk you through the ins and outs of creating sophisticated, professional enhancements and features, specially tailored to take advantage of the WordPress personal publishing platform. It will walk you through clear, step-by-step instructions to build several custom jQuery solutions for various types of hypothetical clients and also show you how to create a jQuery and WordPress Plugin.This book covers step-by-step instructions for creating robust and flexible jQuery solutions for today's top site enhancements: expanding/sliding content, rotating slideshows and other animation tricks, great uses of jQuery's UI plugin widgets as well as AJAX techniques. Along with these it will also show you best practices for jQuery and WordPress development. That means, you'll learn how to implement just about any jQuery enhancement you can dream of on a WordPress site and also learn how to do it with minimal edits to the site's theme and while allowing the site's content editors to continue adding content the way they've always been (usually with the WYSIWYG editor), and never having to worry that they'll forget or not know how to add a special attribute or custom HTML to a post to make the jQuery feature work.From development tools and setting up your WordPress sandbox, through enhancement tips and suggestions, to coding, testing and debugging, and ensuring that the WordPress content editor's workflow isn't interrupted by having to accommodate an enhancement with special HTML, this book covers the best practices for not only jQuery development but specifically jQuery within WordPress development.

Who is this book for?

This book is for anyone who is interested in using jQuery with a WordPress site. It's assumed that most readers will be WordPress developers with a pretty good understanding of PHP or JavaScript programming and at the very least experienced with HTML/CSS development who want to learn how to quickly apply jQuery to their WordPress projects.

What you will learn

  • Take maximum advantage of the flexibility and power offered by jQuery, within WordPress
  • Learn the best practices for getting the jQuery library into your WordPress blog/site and plugins using WordPress Script API
  • Discover how to create rotating slide-shows of sticky posts
  • Enhance the site and still keep the site s editors chugging away happily in WYSIWYG-land.
  • Create sleek eye-catching animations and leverage the jQuery UI plugin within WordPress ‚Äúcontent constraints‚Äù
  • Find out how to use AJAX techniques specifically within WordPress
  • Learn how to keep the site s editors happy without having to dramatically change the theme or impose having to use the HTML View to add content on them.
  • Expert guidance with practical step-by-step instructions for adding interactivity to your content and forms
  • Includes tips, tricks, troubleshooting ideas, and a cheat-sheet reference for using jQuery with WordPress 2.8 to 3.0.
Estimated delivery fee Deliver to New Zealand

Standard delivery 10 - 13 business days

NZ$20.95

Premium delivery 5 - 8 business days

NZ$74.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 24, 2010
Length: 316 pages
Edition : 1st
Language : English
ISBN-13 : 9781849511742
Vendor :
WordPress Foundation
Languages :
Concepts :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to New Zealand

Standard delivery 10 - 13 business days

NZ$20.95

Premium delivery 5 - 8 business days

NZ$74.95
(Includes tracking information)

Product Details

Publication date : Sep 24, 2010
Length: 316 pages
Edition : 1st
Language : English
ISBN-13 : 9781849511742
Vendor :
WordPress Foundation
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just NZ$7 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just NZ$7 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total NZ$ 152.98
WordPress 3.0 jQuery
NZ$71.99
WordPress 3 Ultimate Security
NZ$80.99
Total NZ$ 152.98 Stars icon

Table of Contents

8 Chapters
Getting Started: WordPress and jQuery Chevron down icon Chevron up icon
Working with jQuery in WordPress Chevron down icon Chevron up icon
Digging Deeper: Understanding jQuery and WordPress Together Chevron down icon Chevron up icon
Doing a Lot More with Less: Making Use of Plugins for Both jQuery and WordPress Chevron down icon Chevron up icon
jQuery Animation within WordPress Chevron down icon Chevron up icon
WordPress and jQuery's UI Chevron down icon Chevron up icon
AJAX with jQuery and WordPress Chevron down icon Chevron up icon
Tips and Tricks for Working with jQuery and WordPress Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8
(6 Ratings)
5 star 50%
4 star 16.7%
3 star 16.7%
2 star 0%
1 star 16.7%
Filter icon Filter
Top Reviews

Filter reviews by




RedHeadEd Jun 16, 2011
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Blakeley Silver Tessa book, WordPress 3.0 jQuery, touches on a number of topics explaining them in very clear manner that make a lot of sense. Something that I find missing from a great many technical books. The book has an easy flow to it, and gives the reader a very solid understanding how the pieces fit together. After reading this book, the combination of WordPress 3.0 and jQuery working together has an amazing powerful synergistic effect where the total is far greater than just the sum of its parts. I strongly recommend this book.
Amazon Verified review Amazon
Meowmeow Mar 02, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Very good
Amazon Verified review Amazon
Robert Morris Jan 29, 2011
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Up front, I want to explain why I think so highly of this book: It has prepared me well to work with technical and graphics specialists whom I have retained to transform my website into fully-functional, dynamic WordPress website. More specifically, to enhance that site "with captivating effects" of jQuery, a library of options and applications that can speed the time and reduces the complexity of writing custom JavaScripts. That is to say, Tessa Blakeley Silver and her colleagues have provided a wealth of information, insights, and advice that increases my knowledge base significantly.Frankly, I do not as yet fully understand all of the material provided. While working my way through it, I highlighted key passages and compiled several pages of notes. This will facilitate, indeed expedite review of key points later. (I have also inserted a number of question marks!) I like the format strategy: Explain clusters of sequential tasks or issues that comprise a step-by-step process that begins with the first chapter and concludes with the appendix. These are among the focal points per chapter:1: Core fundamentals, essential tools, background, and essentials2: Getting jQuery into WordPress (WP), and creating first setupNote: Three jQuery "secret weapons" are provided in the second chapter to improve and enhance using selectors and filters, manipulating CSS and elements in the DOM, and working with events and effects, respectively.3: Two ways to "plugin" jQuery, WP theme basics, and WP plugin basics4. Seamless event registration, getting set up, and form validation5. jQuery animation basics, "grabbing" attention, "deeper" into animation6. Understanding jQuery UI plugin, enhancing effects and user interface7. AJAX primer, getting started with AJAX functionality8. Code arsenal, "tips and tricks" re working in WP and jQueryThen a "jQuery and WordPress Reference Guide" is provided in the Appendix and I especially appreciated the material provided in Pages 274-288 ("Getting the Most Out of WordPress"). Technical wizards may not need such reviews and reminders but I certainly do.Even more information about this book can be obtained by visiting [...] PacktLib allows you to access and search across Packt's entire library of over 400 books, finding practical solutions to your searches at the click of a button.
Amazon Verified review Amazon
webdev Mar 04, 2012
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
This book is packed full of fun and applicable exercises for jQuery / Wordpress integration. Further, the exercises cover topics you'll NEED to know in working with these two technologies.The only reason I didn't give it a full five stars is I felt there were a couple of exercises that ended up a bit buggy, but not enough so that the reader couldn't understand the main purpose of the lesson. Also there was no downloadable code for the book, which is unordinary for a technical manual. That said, I've garnered as much value from this book as I have others which I've rated a full five stars.Despite having been written for WP 3.0, I didn't find anything in the book incompatible or deprecated for use in WP 3.3. I particularly liked the tutorial on running 2 loops to build the jQuery UI tabs, the tutorial on building an animated graph from static HTML, and the lesson on mashing up 2 different plugins to build a state of the art registration form.The book features lessons on all the technologies a designer/developer needs to work with Wordpress, from jQuery, Wordpress loops and template hierarchies, to PHP, to HTML and CSS.I highly recommend this title to anyone serious about Wordpress.
Amazon Verified review Amazon
Pete from Cumbria Feb 22, 2013
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
I bought this book for Wordpress but it just confirmed my beliefs that Wordpress is not suitable for anything but basic sites. The jQuery parts are good but short. In summary the book should be priced around 12 pounds to rate higher stars - far too expensive for the content which is not very technical.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the digital copy I get with my Print order? Chevron down icon Chevron up icon

When you buy any Print edition of our Books, you can redeem (for free) the eBook edition of the Print Book you’ve purchased. This gives you instant access to your book when you make an order via PDF, EPUB or our online Reader experience.

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela