Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WordPress Complete, Sixth Edition

You're reading from   WordPress Complete, Sixth Edition A comprehensive guide to WordPress development from scratch

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781787285705
Length 412 pages
Edition 6th Edition
Languages
Concepts
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Introducing WordPress 2. Getting Started with WordPress FREE CHAPTER 3. Creating Blog Content 4. Pages, Media, and Importing/Exporting Content 5. Plugins - What They Are and Why You Need Them 6. Choosing and Installing Themes 7. Customizing Your Website Appearance/Design 8. Developing Your Own Theme 9. Social Media Integration, Podcasting, and HTTPS 10. Developing Plugins, Widgets, and an Introduction to the REST API 11. Community Blogging 12. Creating a Non-Blog Website Part One - The Basics 13. Creating a Non-Blog Website Part Two - E-Commerce Websites and Custom Content Elements

Making your theme widget-friendly

If you want to be able to use widgets in your theme, you will need to make your theme widget-friendly (also known as widgetizing your theme). Widgetizing is actually pretty easy, and to be honest with you, we already took care of that when constructing our sidebar. I didn't discuss much back then, but now let's go back to this topic and explain how widgetizing works.

Going back to our sidebar

Back in the old days, it was very common for a WordPress site to use statically placed content blocks in the sidebar. In other words, the only way to place dynamic content in the sidebar of our sites was to use handmade code that would fetch whatever data we wanted and then display it. This...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime