Join Patrick Rauland for an in-depth discussion in this video Hooks and templates, part of WordPress: Customizing WooCommerce Themes.
- [Narrator] Up until this point, we've mostly…focused on selecting a theme and customizing it with CSS.…We can do a lot with CSS but it isn't the only…tool we'll need to customize a theme.…You'll likely want to make structural changes to a theme.…You might want to rearrange the elements…on the single product page.…Or you might want to add information to the shop page.…Or maybe you want to change how many…products display on the shop page.…Unfortunately, CSS can't help with these types of changes…and we'll need to use two other tools.…The first tool is Templates, if you've built…a WordPress Theme before, you'll likely have…created or edited Templates to control how a page looks.…
They contain HTML, CSS and a bit of PHP.…WooCommerce also has Templates and they can…be overridden similar to how you…override a WordPress Template.…You should use a Template if you want to change the mark up.…That includes HTML tags, HTML Attributes…and the classes assigned to each tag.…The second tool to change the way…WooCommerce works is to use Hooks.…
Author
Released
9/15/2016This course covers the fundamentals of building custom WooCommerce themes. Learn about using WooCommerce hooks, template overrides, PHP, and CSS to style the different store pages, and add custom imagery and icons to fit your branding. Author Patrick Rauland also introduces UX design techniques that encourage customers to buy, such as highlighting savings and adding social media icons for sharing.
- Selecting a base theme
- Matching theme colors
- Overriding and updating WooCommerce templates
- Using hooks
- Modifying your product page: images, tabs, icons, and more
- Modifying the shop page, including customer savings
- Modifying the checkout page
- A/B testing your changes
Skill Level Intermediate
Duration
Views
-
Introduction
-
Welcome53s
-
-
1. Select a Base Theme
-
What to look for in a theme3m 10s
-
Starter themes55s
-
Declare WooCommerce support1m 44s
-
-
2. Modify WooCommerce Styles
-
Match theme colors3m 24s
-
-
3. Modify WooCommerce Layouts
-
Hooks and templates1m 36s
-
Update WooCommerce templates2m 55s
-
Use WooCommerce hooks2m 32s
-
-
4. Modify the Product Page
-
Change image sizes2m 15s
-
Resize image column width1m 50s
-
Add social media icons1m 23s
-
Update the currency symbol2m 32s
-
-
5. Modify the Shop Page
-
Filter products3m 35s
-
Change product display4m 50s
-
Display customer savings4m 33s
-
Customize the sorting menu6m 36s
-
-
6. Modify the Checkout Page
-
Skip the cart1m 26s
-
Add an Empty Cart button3m 54s
-
Hide the coupon field3m 19s
-
Remove checkout fields3m 29s
-
Add checkout fields4m 5s
-
7. A/B Testing
-
When to A/B test1m 15s
-
-
Conclusion
-
Next steps1m 11s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Hooks and templates